Skip to content

Commit

Permalink
FIXED ALL issues regarding elevationDatasourceChanges and globeClosed…
Browse files Browse the repository at this point in the history
… signals
  • Loading branch information
mbernasocchi authored and pka committed Jul 5, 2011
1 parent 8f40cd8 commit ecbd2da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/plugins/globe/globe_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ void GlobePlugin::run()
osgViewer::Viewer viewer;
#endif

mIsGlobeRunning = true;
setupProxy();

// install the programmable manipulator.
Expand Down Expand Up @@ -165,7 +166,6 @@ void GlobePlugin::run()
viewer.run();
#endif

mIsGlobeRunning = true;
}

void GlobePlugin::settings()
Expand Down Expand Up @@ -607,8 +607,8 @@ typedef std::list< osg::ref_ptr<VersionedTile> > TileList;

void GlobePlugin::layersChanged()
{
QgsDebugMsg( "layersChanged" );
if ( mIsGlobeRunning ){
QgsDebugMsg( "layersChanged: Globe Running, executing" );
osg::ref_ptr<Map> map = mMapNode->getMap();

if( map->getImageMapLayers().size() > 1 || map->getHeightFieldMapLayers().size() > 1)
Expand Down Expand Up @@ -679,7 +679,7 @@ void GlobePlugin::layersChanged()
}
else
{
QgsDebugMsg( "EXITING layersChanged, globe not running" );
QgsDebugMsg( "layersChanged: Globe NOT running, skipping" );
return;
}
}
Expand Down

0 comments on commit ecbd2da

Please sign in to comment.