Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix crash in Georeferencer plugin
  • Loading branch information
slarosa committed Sep 4, 2013
1 parent 0ff6341 commit 6835703
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 6835703

Please sign in to comment.