]> git.sesse.net Git - vlc/commitdiff
Qt: Fix "chapter buttons not hiding when stop is clicked" issue
authorJean-Baptiste Kempf <jb@videolan.org>
Thu, 21 Aug 2008 19:12:15 +0000 (12:12 -0700)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 21 Aug 2008 19:13:23 +0000 (12:13 -0700)
http://forum.videolan.org/viewtopic.php?f=14&t=49386

modules/gui/qt4/input_manager.cpp

index b6463b35fc842315cd32e37fc1778858d673ebb0..a3a3937c9591883d7f3a7cbb92df84bd3787d35e 100644 (file)
@@ -181,6 +181,12 @@ void InputManager::customEvent( QEvent *event )
          type != ItemStateChanged_Type )
         return;
 
+    if( type == ItemStateChanged_Type )
+    {
+        UpdateStatus();
+        UpdateNavigation();
+    }
+
     if( !hasInput() ) return;
 
     if( ( type != PositionUpdate_Type  &&
@@ -242,7 +248,8 @@ void InputManager::UpdateNavigation()
 {
     /* Update navigation status */
     vlc_value_t val; val.i_int = 0;
-    var_Change( p_input, "title", VLC_VAR_CHOICESCOUNT, &val, NULL );
+    if( hasInput() )
+        var_Change( p_input, "title", VLC_VAR_CHOICESCOUNT, &val, NULL );
     if( val.i_int > 0 )
     {
         val.i_int = 0;
@@ -356,8 +363,6 @@ void InputManager::UpdateTeletext()
         telexToggle( false );
 }
 
-
-
 void InputManager::UpdateArt()
 {
     /* Update Art meta */