Skip to content

Commit

Permalink
[symbol selector dialog] avoid QCoreApplication::postEvent: Unexpecte…
Browse files Browse the repository at this point in the history
…d null receiver
  • Loading branch information
slarosa committed Oct 18, 2015
1 parent cee63c8 commit a94a788
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/symbology-ng/qgssymbolv2selectordialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,8 @@ void QgsSymbolV2SelectorDialog::setWidget( QWidget* widget )
{
int index = stackedWidget->addWidget( widget );
stackedWidget->setCurrentIndex( index );
mPresentWidget->deleteLater();
if ( mPresentWidget )
mPresentWidget->deleteLater();
mPresentWidget = widget;
}

Expand Down

0 comments on commit a94a788

Please sign in to comment.