qt4: fix the popup menu updating
authorChristophe Mutricy <xtophe@videolan.org>
Wed, 16 May 2007 21:54:48 +0000 (21:54 +0000)
committerChristophe Mutricy <xtophe@videolan.org>
Wed, 16 May 2007 21:54:48 +0000 (21:54 +0000)
modules/gui/qt4/menus.cpp

index 1d91774..72c9367 100644 (file)
@@ -428,10 +428,10 @@ QMenu *QVLCMenu::HelpMenu()
     if( p_input ) \
     { \
         var_Get( p_input, "state", &val ); \
-        if( val.i_int == PAUSE_S ) \
-            MIM_SADD( menu, qtr("Play"), "", "", togglePlayPause() ) \
-        else \
+        if( val.i_int == PLAYING_S ) \
             MIM_SADD( menu, qtr("Pause"), "", "", togglePlayPause() ) \
+        else \
+            MIM_SADD( menu, qtr("Play"), "", "", togglePlayPause() ) \
     } \
     else if( THEPL->items.i_size && THEPL->i_enabled ) \
         MIM_SADD( menu, qtr("Play"), "", "", togglePlayPause() ); \