Skip to content

Commit

Permalink
Fixed bug on new project created
Browse files Browse the repository at this point in the history
  • Loading branch information
mbernasocchi authored and pka committed Jul 5, 2011
1 parent cd72e51 commit 0b8d769
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/plugins/globe/globe_plugin.cpp
Expand Up @@ -113,7 +113,7 @@ void GlobePlugin::initGui()
this, SLOT( layersChanged() ) );
connect( mQGisIface->mainWindow(), SIGNAL( projectRead() ), this,
SLOT( projectReady() ) );
connect( mQGisIface->mainWindow(), SIGNAL( newProjectCreated() ), this,
connect( mQGisIface->mainWindow(), SIGNAL( newProject() ), this,
SLOT( blankProjectReady() ) );
connect( &mQDockWidget, SIGNAL( globeClosed() ), this,
SLOT( setGlobeNotRunning() ) );
Expand Down Expand Up @@ -251,10 +251,10 @@ void GlobePlugin::projectReady()
}

void GlobePlugin::blankProjectReady()
{//TODO
QMessageBox m;
m.setText("new project loaded");
m.exec();
{//TODO maybe we need newProjectCreated() SIGNAL from http://trac.osgeo.org/qgis/changeset/14452
//QMessageBox m;
//m.setText("new project loaded");
//m.exec();
mSettingsDialog.elevationDatasources()->clearContents();
mSettingsDialog.elevationDatasources()->setRowCount(0);
}
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/globe/globe_plugin_dialog_guibase.ui
Expand Up @@ -119,7 +119,7 @@
</sizepolicy>
</property>
<property name="currentIndex">
<number>1</number>
<number>0</number>
</property>
<widget class="QWidget" name="elevationIsLocal">
<layout class="QGridLayout" name="gridLayout_5">
Expand Down

0 comments on commit 0b8d769

Please sign in to comment.