Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix project re-load missing layers (fixes #16560)
  • Loading branch information
nirvn committed May 31, 2017
1 parent 77fd7e6 commit 77cd7af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/qgisapp.cpp
Expand Up @@ -5224,15 +5224,15 @@ void QgisApp::enableProjectMacros()
*/
bool QgisApp::addProject( const QString &projectFile )
{
// close the previous opened project if any
closeProject();

QFileInfo pfi( projectFile );
mStatusBar->showMessage( tr( "Loading project: %1" ).arg( pfi.fileName() ) );
qApp->processEvents();

QApplication::setOverrideCursor( Qt::WaitCursor );

// close the previous opened project if any
closeProject();

bool autoSetupOnFirstLayer = mLayerTreeCanvasBridge->autoSetupOnFirstLayer();
mLayerTreeCanvasBridge->setAutoSetupOnFirstLayer( false );

Expand Down

0 comments on commit 77cd7af

Please sign in to comment.