Commit 381430fc authored by Jasem Mutlaq's avatar Jasem Mutlaq

Create the noimage pixmap to the image chooser and delete afterwards

parent 69552e0a
...@@ -1564,8 +1564,8 @@ bool ObservingList::eventFilter( QObject * obj, QEvent * event ) ...@@ -1564,8 +1564,8 @@ bool ObservingList::eventFilter( QObject * obj, QEvent * event )
void ObservingList::slotSearchImage() void ObservingList::slotSearchImage()
{ {
QPixmap * pm = new QPixmap; QPixmap * pm = new QPixmap(":/images/noimage.png");
QPointer<ThumbnailPicker> tp = new ThumbnailPicker( currentObject(), *pm, this, 600, 600, i18n( "Image Chooser" ) ); QPointer<ThumbnailPicker> tp = new ThumbnailPicker( currentObject(), *pm, this, 200, 200, i18n( "Image Chooser" ) );
if ( tp->exec() == QDialog::Accepted ) if ( tp->exec() == QDialog::Accepted )
{ {
QString currentImagePath = getCurrentImagePath(); QString currentImagePath = getCurrentImagePath();
...@@ -1581,6 +1581,7 @@ void ObservingList::slotSearchImage() ...@@ -1581,6 +1581,7 @@ void ObservingList::slotSearchImage()
slotNewSelection(); slotNewSelection();
} }
} }
delete pm;
delete tp; delete tp;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment