diff options
| author | Shitong Xu <xushitong@uniontech.com> | 2024-12-23 10:54:21 +0800 |
|---|---|---|
| committer | Shitong Xu <xushitong@uniontech.com> | 2025-01-21 19:29:39 +0800 |
| commit | 34f1b6b6d1dd7c37f2d71c0032ddc0c83360c11c (patch) | |
| tree | ccb26798cd9090d922694f594a04c0f5ea84f31d /src/gui/platform/unix/qgenericunixservices.cpp | |
| parent | 1dcc5a6dd28606c7959d0626f74f8c05e112b1fc (diff) | |
QFileDialog: the lastVisited not loaded correctly
Url passed from the QFileDialogArgs will never be invalid, it will
always be the value that user passed into or the lastVisited or the
working directory. And because of this, the fixes code of QTBUG-70798
will never be invoked, and the `lastVisited` will never be initialize if
nativedialog is in use.
I wrote an init function to initialize the `lastVisited` global
variable, to make sure the value will be loaded correctly
Fixes: QTBUG-70798
Pick-to: 6.8 6.9
Change-Id: Id05f63db7b4738e6317721741111882a565437e3
Reviewed-by: Xu Shitong <xushitong@uniontech.com>
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'src/gui/platform/unix/qgenericunixservices.cpp')
0 files changed, 0 insertions, 0 deletions
