You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Quit, which will prompt a dialog to save the project
When asked where to save, cancel the dialog (in my case, I realized I needed information from the layers to choose the project name)
Qgis will quit anyway, without saving the project
I had a look at the code and based on my understanding, it is enough to change line 3197 of qgisapp.cpp to return false and cancel the operation when no file has been chosen.
I can confirm this issue exists on Mac 10.7.4 with 1.8.0 and master branch. The supplied patch fixes the issue and logically follows the comment on line # 5630 of /src/app/qgisapp.cpp:
/**
Prompt and save if project has been modified.
@return true if saved or discarded, false if cancelled
*/
bool QgisApp::saveDirty()
The supplied patch by Leyan causes saveDirty to return false as if the Cancel button was clicked in the initial dialog, which is the expected result. Loss of work, as reported, is the unexpected result.
A little clarification on reproducing the issue:
...
Quit, which will prompt a dialog to save the project
Author Name: Leyan Ouyang (Leyan Ouyang)
Original Redmine Issue: 5970
Affected QGIS version: master
Steps to reproduce:
I had a look at the code and based on my understanding, it is enough to change line 3197 of qgisapp.cpp to return false and cancel the operation when no file has been chosen.
The text was updated successfully, but these errors were encountered: