Skip to content
Permalink
Browse files

fix crash in SpatialQuery plugin

  • Loading branch information
slarosa authored and timlinux committed Sep 6, 2013
1 parent 914cf88 commit 4357f28970e191fb35c8641b3bc8a514eede1d4c
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/plugins/spatialquery/qgsspatialqueryplugin.cpp
@@ -99,7 +99,7 @@ void QgsSpatialQueryPlugin::unload()
mIface->removePluginVectorMenu( tr( "&Spatial Query" ), mSpatialQueryAction );

delete mSpatialQueryAction;

mSpatialQueryAction = 0;
delete mDialog;
mDialog = NULL;
}
@@ -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 )

0 comments on commit 4357f28

Please sign in to comment.
You can’t perform that action at this time.