Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.0.2
-
None
-
Windows 7, Windows 8
-
42760e43eaa64e834809ef5fb01a83cfb75f4f04 ,fixup: a90d93285a0b95013020644f29c5d932aa989d37
Description
The implementation doesn't follow the Windows platform default behavior if 'Save as type:' is selected to be 'Text Files (*.txt)'
standarddialogs can be used to reproduce this issue.
Follow these steps.
1) Using notepad or some other application create a file called test.txt
2) In the StandardDialogs example navigate to that directory and verify that you see the file test.txt.
3) In the Save as type: Select *.txt
4) Type "test" as the filename.
5) Click save.
Expected result:
A dialog should be shown to ask about if one wants to replace an existing file.
Actual result:
No warning about overwriting an existing file is shown.
Note that the output is indicating that the file test.txt at that path was selected.
Note: Using the non-native dialog the extension .txt is not added to the file which is also unexpected behavior.
Attachments
Issue Links
- relates to
-
QTBUG-31381 QFileDialog (QWidget-based, native): filename suffix not changing according selected filter (AcceptSave)
- Closed