[vlc-commits] Qt: disable recentMenus, if it is empty

Jean-Baptiste Kempf git at videolan.org
Mon Oct 10 12:20:33 CEST 2011


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Oct 10 12:16:00 2011 +0200| [b7eebe3f2aa0293012186e7b9f76f983274beef1] | committer: Jean-Baptiste Kempf

Qt: disable recentMenus, if it is empty

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

 modules/gui/qt4/menus.cpp |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt4/menus.cpp b/modules/gui/qt4/menus.cpp
index f82f0cd..205bcab 100644
--- a/modules/gui/qt4/menus.cpp
+++ b/modules/gui/qt4/menus.cpp
@@ -1514,8 +1514,7 @@ void QVLCMenu::updateRecents( intf_thread_t *p_intf )
 
         if( !l.count() )
         {
-            action = recentsMenu->addAction( qtr(" - Empty - ") );
-            action->setEnabled( false );
+            recentsMenu->setEnabled( false );
         }
         else
         {



More information about the vlc-commits mailing list