Skip to content

Commit

Permalink
fix crash in Georeferencer plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
slarosa authored and timlinux committed Sep 6, 2013
1 parent 75fa352 commit ca1301b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/plugins/georeferencer/qgsgeorefplugin.cpp
Expand Up @@ -125,6 +125,7 @@ void QgsGeorefPlugin::unload()
mQGisIface->removeRasterToolBarIcon( mActionRunGeoref );

delete mActionRunGeoref;
mActionRunGeoref = 0;

delete mPluginGui;
mPluginGui = NULL;
Expand All @@ -133,7 +134,8 @@ void QgsGeorefPlugin::unload()
//! Set icons to the current theme
void QgsGeorefPlugin::setCurrentTheme( QString )
{
mActionRunGeoref->setIcon( getThemeIcon( "/mGeorefRun.png" ) );
if ( mActionRunGeoref )
mActionRunGeoref->setIcon( getThemeIcon( "/mGeorefRun.png" ) );
}

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

0 comments on commit ca1301b

Please sign in to comment.