Bug report #3935
Save File As dialog boxes display "Open" button rather than "Save"
|Affected QGIS version:||Regression?:||No|
|Operating System:||Fedora||Easy fix?:||No|
|Pull Request or Patch supplied:||Resolution:||fixed|
|Crashes QGIS or corrupts data:||Copied to github as #:||13959|
Save As Dialog Boxes Incorrectly Display "Open" Button¶
The following dialog boxes should show a "Save" button rather than an "Open" button.
- File->Save Project As...
- File->Save as Image...
This is observed with trunk r5105, built with Qt 4.1.1
#1 Updated by Tim Baggett - over 15 years ago
I have attached a patch to qgisapp.cpp which I believe fixes this issue for both "save project as" and "save as image" dialog boxes, in addition to two another minor fixes.
- The dialog box is configured to open a file by default. By setting the accept mode to AcceptSave, the "Open" button is now changed to "Save".
- The dialog box is now configured to confirm if the user has selected an existing file to be overwritten. The code that previously performed this check and displayed a warning in fileSaveAs() was deleted in favor of the Qt confirmation. There was no corresponding check being performed in saveMapAsImage() as far as I could find.
- The fileSaveAs() dialog box title is changed to match the existing title in the saveMapAsImage() dialog box.
A potential issue I see is that when the user is prompted to confirm overwriting an existing file, the titles are too long and are truncated in the confirmation dialog box.