[vlc-commits] qt: fix track menu not disabled when empty

Thomas Guillem git at videolan.org
Tue Feb 6 20:00:42 CET 2018


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Feb  6 19:59:36 2018 +0100| [6a4f59aeeea98294f7ebf8bb0ecbc1bb9c650baa] | committer: Thomas Guillem

qt: fix track menu not disabled when empty

Fixes #19618

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

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

diff --git a/modules/gui/qt/menus.cpp b/modules/gui/qt/menus.cpp
index 0ccf1412eb..549e30913b 100644
--- a/modules/gui/qt/menus.cpp
+++ b/modules/gui/qt/menus.cpp
@@ -1345,6 +1345,8 @@ void VLCMenuBar::UpdateItem( intf_thread_t *p_intf, QMenu *menu,
         FREENULL( text.psz_string );
         return;
     }
+    else
+        action->setEnabled( false );
 
     switch( i_type & VLC_VAR_TYPE )
     {



More information about the vlc-commits mailing list