Skip to content
Permalink
Browse files

fix project re-load missing layers (fixes #16560)

  • Loading branch information
nirvn committed May 31, 2017
1 parent 77fd7e6 commit 77cd7afaaa391469eefee1037d61489db3eb9b14
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/app/qgisapp.cpp
@@ -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 );

0 comments on commit 77cd7af

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