[vlc-commits] [Git][videolan/vlc][master] qt: register QuestionType meta type

Steve Lhomme (@robUx4) gitlab at videolan.org
Sat Apr 18 04:15:27 UTC 2026



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
03643a59 by Khalid Masum at 2026-04-18T04:00:10+00:00
qt: register QuestionType meta type

Questiontype dialog boxes fail and media player halts whenever a
question dialog is triggered. This patch fixes it.

Fixes #29207

Co-authored-by: Fatih Uzunoglu <fuzun54 at outlook.com>

- - - - -


2 changed files:

- modules/gui/qt/dialogs/dialogs/dialogmodel.hpp
- modules/gui/qt/qt.cpp


Changes:

=====================================
modules/gui/qt/dialogs/dialogs/dialogmodel.hpp
=====================================
@@ -155,7 +155,7 @@ signals:
                const QString & text, const QString & defaultUsername,
                bool b_ask_store);
 
-    void question(DialogId dialogId, const QString & title, const QString & text, QuestionType type,
+    void question(DialogId dialogId, const QString & title, const QString & text, VLCDialog::QuestionType type,
                   const QString & cancel, const QString & action1, const QString & action2);
 
     void progress(DialogId dialogId, const QString & title, const QString & text,


=====================================
modules/gui/qt/qt.cpp
=====================================
@@ -770,6 +770,7 @@ static inline void registerMetaTypes()
     qRegisterMetaType<MLItemId>();
     qRegisterMetaType<QVector<MLItemId>>();
     qRegisterMetaType<QList<QQmlError>>();
+    qRegisterMetaType<VLCDialog::QuestionType>();
 }
 
 static void *Thread( void *obj )



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/03643a59b481f5081f3192b7a5fca3804509af88

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/03643a59b481f5081f3192b7a5fca3804509af88
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list