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

Thomas Guillem git at videolan.org
Tue Feb 6 21:15:14 CET 2018


vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Feb  6 19:59:36 2018 +0100| [475a482a8e71b4fef090f234d5ab8059e1d34136] | committer: Jean-Baptiste Kempf

qt: fix track menu not disabled when empty

Fixes #19618

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

 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