Steve Lhomme pushed to branch 3.0.x at VideoLAN / VLC
Commits:
08a4fb0b by Marvin Scholz at 2026-01-28T07:37:07+00:00
qt: fix default open dialog location
The m_dialogFilepath which stores the last location of the open dialog,
is supposed to be a QUrl, not a normal string file path. Therefore the
default value has to be converted to a proper QUrl and the setting has
to be read as QUrl, for consisteny.
Manual backport of 18bf5447acb6dbfa6d7db28ede7809406e983904
- - - - -
1 changed file:
- modules/gui/qt/qt.cpp
Changes:
=====================================
modules/gui/qt/qt.cpp
=====================================
@@ -672,8 +672,9 @@ static void *ThreadPlatform( void *obj, char *platform_name
)
app.setQuitOnLastWindowClosed( false );
/* Retrieve last known path used in file browsing */
+ const QUrl homeUrl = QUrl::fromLocalFile(QVLCUserDir( VLC_HOME_DIR ));
p_sys->filepath =
- getSettings()->value( "filedialog-path", QVLCUserDir( VLC_HOME_DIR )
).toString();
+ getSettings()->value( "filedialog-path", homeUrl ).toUrl();
/* Loads and tries to apply the preferred QStyle */
QString s_style = getSettings()->value( "MainWindow/QtStyle", ""
).toString();
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/commit/08a4fb0bb9fd6ab4270fdb6bd43bec5aba2cd3c5
--
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/commit/08a4fb0bb9fd6ab4270fdb6bd43bec5aba2cd3c5
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits