Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.3.0, 5.3.2, 5.4.0
-
None
-
eaf94872230a3b2fd9ade268f58262f70e6dcf27
Description
To reproduce:
1. Start "application" example
2. Click "save" button to open the file dialog
3. Click "cancel"
You will get a message box that the file cannot be saved because the file name points to a directory.
Looking at the code in the example, it tries to detect cancel by checking if the returned list from selectedFiles() is empty. This is documented to never happen. The example should check the return value from exec() instead.
Reproduced on Linux and Android.
Attachments
For Gerrit Dashboard: QTBUG-41020 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
95022,2 | mainwidget/application example: Fixed the handling of rejected save | 5.4 | qt/qtbase | Status: ABANDONED | 0 | 0 |
95027,2 | Fix cancel operation for example "Application" | 5.4 | qt/qtbase | Status: MERGED | +2 | 0 |