[vlc-commits] [Git][videolan/vlc][3.0.x] qt: fix application quitting when external open dialog closes in dialog provider mode

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Thu Oct 15 18:20:32 UTC 2026



Jean-Baptiste Kempf pushed to branch 3.0.x at VideoLAN / VLC


Commits:
843607a0 by Pierre Lamot at 2026-10-15T19:54:29+02:00
qt: fix application quitting when external open dialog closes in dialog provider mode

The default behavior for QEventLoopLocker is to quit the main loop when there are
no other QEventLoopLocker held (and no active windows). When qt is used as a
dialog provider it typically has no window open. On some platforms (KDE for
instance), requesting a native file dialog will hold a QEventLoopLocker while
the dialog is open, causing the main loop to exit once the dialog is closed.

fix: #30117

- - - - -


1 changed file:

- modules/gui/qt/qt.cpp


Changes:

=====================================
modules/gui/qt/qt.cpp
=====================================
@@ -670,6 +670,7 @@ static void *ThreadPlatform( void *obj, char *platform_name )
 
     /* Last settings */
     app.setQuitOnLastWindowClosed( false );
+    app.setQuitLockEnabled( false );
 
     /* Retrieve last known path used in file browsing */
     const QUrl homeUrl = QUrl::fromLocalFile(QVLCUserDir( VLC_HOME_DIR ));



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/843607a066be54af41c4ab69a1de538e687229a6

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/843607a066be54af41c4ab69a1de538e687229a6
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list