[vlc-commits] qt: fix Media > Open not starting playback when enqueuing

Pierre Lamot git at videolan.org
Thu Oct 29 09:08:28 CET 2020


vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | Thu Oct 15 09:31:07 2020 +0200| [fd3661caabf9c77dfc8ebc9ffa969ddcae9bff98] | committer: Pierre Lamot

qt: fix Media > Open not starting playback when enqueuing

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fd3661caabf9c77dfc8ebc9ffa969ddcae9bff98
---

 modules/gui/qt/menus/menus.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/gui/qt/menus/menus.cpp b/modules/gui/qt/menus/menus.cpp
index 25a091a66c..fdf3c8a6fc 100644
--- a/modules/gui/qt/menus/menus.cpp
+++ b/modules/gui/qt/menus/menus.cpp
@@ -205,8 +205,9 @@ QMenu *VLCMenuBar::FileMenu( intf_thread_t *p_intf, QMenu *menu, MainInterface *
 {
     QAction *action;
 
+    //use a lambda here as the Triggrered signal is emiting and it will pass false (checked) as a first argument
     addDPStaticEntry( menu, qtr( "Open &File..." ),
-        ":/type/file-asym.svg", &DialogsProvider::simpleOpenDialog, "Ctrl+O" );
+        ":/type/file-asym.svg", []() { THEDP->simpleOpenDialog(); } , "Ctrl+O" );
     addDPStaticEntry( menu, qtr( "&Open Multiple Files..." ),
         ":/type/file-asym.svg", &DialogsProvider::openFileDialog, "Ctrl+Shift+O" );
     addDPStaticEntry( menu, qtr( I_OP_OPDIR ),



More information about the vlc-commits mailing list