Skip to content
Permalink
Browse files

globe plugin: fix crash on exit

  • Loading branch information
jef-n committed Mar 31, 2016
1 parent 3bfe2f1 commit bde512646caffc48f3158ec42b56016aeaae77fd
Showing with 16 additions and 1 deletion.
  1. +16 −1 src/plugins/globe/globe_plugin.cpp
@@ -826,7 +826,7 @@ void GlobePlugin::setupProxy()

void GlobePlugin::extentsChanged()
{
QgsDebugMsg( "extentsChanged: " + mQGisIface->mapCanvas()->extent().toString() );
QgsDebugMsg( "extentsChanged: " + qobject_cast<QgsMapCanvas *>( sender() )->extent().toString() );
}

void GlobePlugin::imageLayersChanged()
@@ -1014,6 +1014,21 @@ void GlobePlugin::unload()
mQGisIface->removeToolBarIcon( mQActionPointer );

delete mQActionPointer;
delete mQActionSettingsPointer;
delete mQActionUnload;

disconnect( mQGisIface->mapCanvas(), SIGNAL( extentsChanged() ),
this, SLOT( extentsChanged() ) );
disconnect( mQGisIface->mapCanvas(), SIGNAL( layersChanged() ),
this, SLOT( imageLayersChanged() ) );
disconnect( mSettingsDialog, SIGNAL( elevationDatasourcesChanged() ),
this, SLOT( elevationLayersChanged() ) );
disconnect( mQGisIface->mainWindow(), SIGNAL( projectRead() ), this,
SLOT( projectReady() ) );
disconnect( mQGisIface, SIGNAL( newProjectCreated() ), this,
SLOT( blankProjectReady() ) );
disconnect( this, SIGNAL( xyCoordinates( const QgsPoint & ) ),
mQGisIface->mapCanvas(), SIGNAL( xyCoordinates( const QgsPoint & ) ) );

#if 0
if ( mCoutRdBuf )

0 comments on commit bde5126

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