Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.15.2, 6.2.0
-
None
Description
Steps to reproduce:
1 Click on main window -> file dialog will be opened in folder
StandardPaths.writableLocation(StandardPaths.PicturesLocation)
2 Chose any file in other directory, and push the open button
3 Click on main window -> file dialog will be opened
Expected result:
File dialog will be opened in folder which set using folder property, in current example this is last accepted folder
Actual result:
File dialog always opens in StandardPaths.writableLocation(StandardPaths.PicturesLocation)
Logs from example:
QML debugging is enabled. Only use this in a safe environment. qml: File dialog will be opened in folder = file:///Users/user/Pictures , last opened folder = file:///Users/user/Pictures qml: onAccepted: lastopenedFolder = file:///Users/user/Documents qml: File dialog will be opened in folder = file:///Users/user/Documents , last opened folder = file:///Users/user/Documents qml: onAccepted: lastOpenedFolder = file:///Users/user/Downloads qml: File dialog will be opened in folder = file:///Users/user/Downloads , last opened folder = file:///Users/user/Downloads
Possible related issues:
https://bugreports.qt.io/browse/QTBUG-46270
https://bugreports.qt.io/browse/QTBUG-73179