Skip to content

Commit ca1301b

Browse files
slarosatimlinux
authored andcommitted
fix crash in Georeferencer plugin
1 parent 75fa352 commit ca1301b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/plugins/georeferencer/qgsgeorefplugin.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ void QgsGeorefPlugin::unload()
125125
mQGisIface->removeRasterToolBarIcon( mActionRunGeoref );
126126

127127
delete mActionRunGeoref;
128+
mActionRunGeoref = 0;
128129

129130
delete mPluginGui;
130131
mPluginGui = NULL;
@@ -133,7 +134,8 @@ void QgsGeorefPlugin::unload()
133134
//! Set icons to the current theme
134135
void QgsGeorefPlugin::setCurrentTheme( QString )
135136
{
136-
mActionRunGeoref->setIcon( getThemeIcon( "/mGeorefRun.png" ) );
137+
if ( mActionRunGeoref )
138+
mActionRunGeoref->setIcon( getThemeIcon( "/mGeorefRun.png" ) );
137139
}
138140

139141
QIcon QgsGeorefPlugin::getThemeIcon( const QString &theName )

0 commit comments

Comments
 (0)