mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
fix crash in Georeferencer plugin
This commit is contained in:
parent
0ff634158f
commit
6835703ea3
@ -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 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user