Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.9.2
-
None
-
Ubuntu 17.10
Description
This issue is present when a nativeĀ QFileDialog is in QFileDialog::AcceptSave mode and is set to use a default suffix (example below).
QFileDialog fileDialog;
fileDialog.setFileMode(QFileDialog::AnyFile);
fileDialog.setAcceptMode(QFileDialog::AcceptSave);
fileDialog.setDefaultSuffix("txt");
fileDialog.setNameFilter("Text (*.txt)");
The problem is when the following sequence occurs:
- The user navigates to a folder where a file "text.txt" exists.
- The user enters "text" into the textbox (without the ".txt" suffix).
- The user presses return or clicks "save".
- The dialog returns "text.txt" without requesting overwrite confirmation from the user.
This issue seems to be present in Linux. I have tested it using Windows and OSX and the confirmation is requested.