Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
globe plugin: fix crash on exit
  • Loading branch information
jef-n committed Mar 31, 2016
1 parent 3bfe2f1 commit bde5126
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/plugins/globe/globe_plugin.cpp
Expand Up @@ -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()
Expand Down Expand Up @@ -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 )
Expand Down

0 comments on commit bde5126

Please sign in to comment.