Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix crash in SpatialQuery plugin
  • Loading branch information
slarosa committed Sep 4, 2013
1 parent 3986036 commit fbf8225
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/plugins/spatialquery/qgsspatialqueryplugin.cpp
Expand Up @@ -99,7 +99,7 @@ void QgsSpatialQueryPlugin::unload()
mIface->removePluginVectorMenu( tr( "&Spatial Query" ), mSpatialQueryAction );

delete mSpatialQueryAction;

mSpatialQueryAction = 0;
delete mDialog;
mDialog = NULL;
}
Expand Down Expand Up @@ -137,7 +137,8 @@ void QgsSpatialQueryPlugin::run()
//! Set icons to the current theme
void QgsSpatialQueryPlugin::setCurrentTheme( QString )
{
mSpatialQueryAction->setIcon( getThemeIcon( "/spatialquery.png" ) );
if ( mSpatialQueryAction )
mSpatialQueryAction->setIcon( getThemeIcon( "/spatialquery.png" ) );
}

QIcon QgsSpatialQueryPlugin::getThemeIcon( const QString &theName )
Expand Down

0 comments on commit fbf8225

Please sign in to comment.