Skip to content

Commit

Permalink
Fix QGIS crashing when loading a recent project after saving dirty pr…
Browse files Browse the repository at this point in the history
…oject
  • Loading branch information
nirvn committed Nov 23, 2019
1 parent 6b0c9b8 commit ec9e598
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/qgisapp.cpp
Expand Up @@ -6800,12 +6800,13 @@ void QgisApp::openProject( QAction *action )
{
// possibly save any pending work before opening a different project
Q_ASSERT( action );
const QString project = action->data().toString().replace( "&&", "&" );

if ( checkTasksDependOnProject() )
return;

if ( checkUnsavedLayerEdits() && checkMemoryLayers() && saveDirty() )
addProject( action->data().toString().replace( "&&", "&" ) );
addProject( project );
}

void QgisApp::runScript( const QString &filePath )
Expand Down

0 comments on commit ec9e598

Please sign in to comment.