]> git.sesse.net Git - vlc/commitdiff
Qt: disable recentMenus, if it is empty
authorJean-Baptiste Kempf <jb@videolan.org>
Mon, 10 Oct 2011 10:16:00 +0000 (12:16 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 10 Oct 2011 10:16:00 +0000 (12:16 +0200)
modules/gui/qt4/menus.cpp

index f82f0cd76da649e7cbfaa19bc527e2633c9e6cf1..205bcab11adaf7a5c20078663c1a99b1aef8ecb5 100644 (file)
@@ -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
         {