Skip to content

Commit

Permalink
Do not show error message if user cancels save as dialog
Browse files Browse the repository at this point in the history
The save to database providers return an null QString() if the dialog is cancelled,
as documented in qgsprojectstorageprovider.h.
No reason to show an error message for cancelling this dialog.

(cherry picked from commit a076f83)
  • Loading branch information
m-kuhn authored and nyalldawson committed Jun 19, 2020
1 parent 102f42d commit 9e43545
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/app/qgisapp.cpp
Expand Up @@ -14956,10 +14956,6 @@ void QgisApp::populateProjectStorageMenu( QMenu *menu, const bool saving )
{
saveProjectToProjectStorage( uri );
}
else
{
messageBar()->pushCritical( tr( "Project save failed" ), tr( "The project could not be saved because the project storage URI is empty." ) );
}
} );
}
else
Expand Down

0 comments on commit 9e43545

Please sign in to comment.