Skip to content

Commit

Permalink
Patched source against http://trac.osgeo.org/qgis/changeset/14452 to …
Browse files Browse the repository at this point in the history
…use newProjectCreated signal
  • Loading branch information
mbernasocchi authored and pka committed Jul 5, 2011
1 parent 0b8d769 commit d3dfc8e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/plugins/globe/globe_plugin.cpp
Expand Up @@ -113,11 +113,10 @@ void GlobePlugin::initGui()
this, SLOT( layersChanged() ) );
connect( mQGisIface->mainWindow(), SIGNAL( projectRead() ), this,
SLOT( projectReady() ) );
connect( mQGisIface->mainWindow(), SIGNAL( newProject() ), this,
connect( mQGisIface, SIGNAL( newProjectCreated() ), this,
SLOT( blankProjectReady() ) );
connect( &mQDockWidget, SIGNAL( globeClosed() ), this,
SLOT( setGlobeNotRunning() ) );

}

void GlobePlugin::run()
Expand Down Expand Up @@ -247,11 +246,14 @@ void GlobePlugin::setupMap()

void GlobePlugin::projectReady()
{
//QMessageBox m;
//m.setText("projectReady()");
//m.exec();
mSettingsDialog.readElevationDatasources();
}

void GlobePlugin::blankProjectReady()
{//TODO maybe we need newProjectCreated() SIGNAL from http://trac.osgeo.org/qgis/changeset/14452
{//TODO now i patched the source against from http://trac.osgeo.org/qgis/changeset/14452
//QMessageBox m;
//m.setText("new project loaded");
//m.exec();
Expand Down

0 comments on commit d3dfc8e

Please sign in to comment.