Skip to content
Permalink
Browse files

Patched source against http://trac.osgeo.org/qgis/changeset/14452 to …

…use newProjectCreated signal
  • Loading branch information
mbernasocchi authored and pka committed Feb 15, 2011
1 parent 0b8d769 commit d3dfc8ee472d77444bfc1530754ee995549bb596
Showing with 5 additions and 3 deletions.
  1. +5 −3 src/plugins/globe/globe_plugin.cpp
@@ -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()
@@ -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();

0 comments on commit d3dfc8e

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