Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
18bf5447 by Marvin Scholz at 2026-01-26T12:04:35+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.

- - - - -


1 changed file:

- modules/gui/qt/maininterface/mainctx.cpp


Changes:

=====================================
modules/gui/qt/maininterface/mainctx.cpp
=====================================
@@ -196,7 +196,8 @@ MainCtx::MainCtx(qt_intf_t *_p_intf)
     /* Controlbar Profile Model Creation */
     m_controlbarProfileModel = new 
ControlbarProfileModel(p_intf->mainSettings, this);
 
-    m_dialogFilepath = getSettings()->value( "filedialog-path", QVLCUserDir( 
VLC_HOME_DIR ) ).toString();
+    const QUrl homeUrl = QUrl::fromLocalFile(QVLCUserDir( VLC_HOME_DIR ));
+    m_dialogFilepath = getSettings()->value( "filedialog-path", homeUrl 
).toUrl();
 
     QString platformName = QGuiApplication::platformName();
 



View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/18bf5447acb6dbfa6d7db28ede7809406e983904

-- 
View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/18bf5447acb6dbfa6d7db28ede7809406e983904
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

Reply via email to