Skip to content

Commit bea14e3

Browse files
committedAug 27, 2015
Fix welcome screen vs project loading
1 parent c285ed1 commit bea14e3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -590,8 +590,10 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, QWidget * parent,
590590

591591
qobject_cast<QGridLayout *>( centralWidget->layout() )->addWidget( mCentralContainer, 0, 0, 2, 1 );
592592

593-
mCentralContainer->setCurrentIndex( 1 );
593+
connect( mMapCanvas, SIGNAL( layersChanged() ), this, SLOT( showMapCanvas() ) );
594+
connect( this, SIGNAL( newProject() ), this, SLOT( showMapCanvas() ) );
594595

596+
mCentralContainer->setCurrentIndex( 1 );
595597

596598
// a bar to warn the user with non-blocking messages
597599
mInfoBar = new QgsMessageBar( centralWidget );
@@ -3929,8 +3931,6 @@ void QgisApp::fileOpenAfterLaunch()
39293931
QString projPath = QString();
39303932
if ( projOpen == 0 ) // welcome page
39313933
{
3932-
connect( mMapCanvas, SIGNAL( layersChanged() ), this, SLOT( showMapCanvas() ) );
3933-
connect( this, SIGNAL( newProject() ), this, SLOT( showMapCanvas() ) );
39343934
return;
39353935
}
39363936
if ( projOpen == 1 && mRecentProjects.size() > 0 ) // most recent project

0 commit comments

Comments
 (0)
Failed to load comments.