Skip to content

Commit

Permalink
Prompt to save unchanged project on close before prompting to save
Browse files Browse the repository at this point in the history
any unsaved scripts

It just seems more natural this way!
  • Loading branch information
nyalldawson committed Oct 23, 2020
1 parent 694cc76 commit b925f1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgisapp.cpp
Expand Up @@ -6395,7 +6395,7 @@ void QgisApp::fileExit()
}

QgsCanvasRefreshBlocker refreshBlocker;
if ( checkUnsavedLayerEdits() && checkMemoryLayers() && checkExitBlockers() && saveDirty() )
if ( checkUnsavedLayerEdits() && checkMemoryLayers() && saveDirty() && checkExitBlockers() )
{
closeProject();
userProfileManager()->setDefaultFromActive();
Expand Down

0 comments on commit b925f1e

Please sign in to comment.