Skip to content
Permalink
Browse files

Fix #4266 - georeferencer and spatial query crashing on exit

  • Loading branch information
wonder-sk committed Sep 6, 2011
1 parent 49e4e99 commit d5594b09e050412d92ae6916e2141975a993a262
@@ -80,7 +80,8 @@ static const QString sPluginIcon = ":/icons/mGeorefRun.png";
*/
QgsGeorefPlugin::QgsGeorefPlugin( QgisInterface * theQgisInterface ):
QgisPlugin( sName, sDescription, sPluginVersion, sPluginType ),
mQGisIface( theQgisInterface )
mQGisIface( theQgisInterface ),
mPluginGui( NULL )
{
}

@@ -115,8 +116,8 @@ void QgsGeorefPlugin::initGui()
// Slot called when the buffer menu item is triggered
void QgsGeorefPlugin::run()
{
mPluginGui = new QgsGeorefPluginGui( mQGisIface, mQGisIface->mainWindow() );
mPluginGui->setAttribute( Qt::WA_DeleteOnClose );
if ( !mPluginGui )
mPluginGui = new QgsGeorefPluginGui( mQGisIface, mQGisIface->mainWindow() );
mPluginGui->show();
mPluginGui->setFocus();
}
@@ -131,6 +132,9 @@ void QgsGeorefPlugin::unload()

delete mActionRunGeoref;
delete mActionAbout;

delete mPluginGui;
mPluginGui = NULL;
}

//! Set icons to the current theme
@@ -99,6 +99,8 @@ void QgsSpatialQueryPlugin::unload()

delete mSpatialQueryAction;

delete mDialog;
mDialog = NULL;
}

void QgsSpatialQueryPlugin::run()

1 comment on commit d5594b0

@Jean-Roc

This comment has been minimized.

Copy link
Member

@Jean-Roc Jean-Roc commented on d5594b0 Sep 15, 2011

Hi Martin, could you backport this change to 1.7.1 ?

Please sign in to comment.
You can’t perform that action at this time.