From 6835703ea354f454b489ea84e4e7fbc4265bd740 Mon Sep 17 00:00:00 2001 From: Salvatore Larosa Date: Thu, 5 Sep 2013 00:19:55 +0200 Subject: [PATCH] fix crash in Georeferencer plugin --- src/plugins/georeferencer/qgsgeorefplugin.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/georeferencer/qgsgeorefplugin.cpp b/src/plugins/georeferencer/qgsgeorefplugin.cpp index ab18ab3c3ee..93992e6d84c 100644 --- a/src/plugins/georeferencer/qgsgeorefplugin.cpp +++ b/src/plugins/georeferencer/qgsgeorefplugin.cpp @@ -125,6 +125,7 @@ void QgsGeorefPlugin::unload() mQGisIface->removeRasterToolBarIcon( mActionRunGeoref ); delete mActionRunGeoref; + mActionRunGeoref = 0; delete mPluginGui; mPluginGui = NULL; @@ -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 )