Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.12.4
-
None
Description
The QFileDialog::directory() method returns the current directory being browsed in the file dialog. Normally this works correctly whether the dialog is in AnyFile, ExistingFile, or Directory mode.
But when running in Flatpak, the directory() method returns a stale constant directory path instead of the directory that the file dialog is browsing when a file is selected. This seems to affect the dialog running in AnyFile, ExistingFile, or ExistingFiles mode. This bug does not seem to affect a dialog running in Directory file mode.
I created a small project to demonstrate this difference [here|https://gitlab.com/mtmiller/flatpak-qt-dialog-bug.]
Attachments
Issue Links
- relates to
-
QTBUG-100297 QXdgDesktopPortalFileDialog::openPortal() does not set current_name
- Closed