mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
fix project re-load missing layers (fixes #16560)
This commit is contained in:
parent
77fd7e63ea
commit
77cd7afaaa
@ -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 );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user