Skip to content
Permalink
Browse files

fix crash in Compass plugin

  • Loading branch information
slarosa committed Sep 5, 2013
1 parent 37a20f4 commit 3896c73884e8e85e9b49fdceb3be715224a06821
Showing with 8 additions and 2 deletions.
  1. +8 −2 src/plugins/compass/qgscompassplugin.cpp
@@ -145,15 +145,21 @@ void QgsCompassPlugin::unload()
mQGisIface->removePluginMenu( sName, mActionAboutCompass );

delete mActionRunCompass;
mActionRunCompass = 0;
delete mActionAboutCompass;
mActionAboutCompass = 0;
delete mDock;
mDock = 0;
}

//! Set icons to the current theme
void QgsCompassPlugin::setCurrentTheme( QString )
{
mActionRunCompass->setIcon( getThemeIcon( "/mCompassRun.png" ) );
mActionAboutCompass->setIcon( getThemeIcon( "/mActionAbout.png" ) );
if ( mActionRunCompass && mActionAboutCompass )
{
mActionRunCompass->setIcon( getThemeIcon( "/mCompassRun.png" ) );
mActionAboutCompass->setIcon( getThemeIcon( "/mActionAbout.png" ) );
}
}

QIcon QgsCompassPlugin::getThemeIcon( const QString &theName )

0 comments on commit 3896c73

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