[vlc-devel] commit: Qt: Fix "chapter buttons not hiding when stop is clicked" issue ( Jean-Baptiste Kempf )

git version control git at videolan.org
Thu Aug 21 21:10:27 CEST 2008


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Aug 21 12:12:15 2008 -0700| [f9b25cf4378f25164f7b4bebef7cb03876144309] | committer: Jean-Baptiste Kempf 

Qt: Fix "chapter buttons not hiding when stop is clicked" issue

http://forum.videolan.org/viewtopic.php?f=14&t=49386

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

 modules/gui/qt4/input_manager.cpp |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/modules/gui/qt4/input_manager.cpp b/modules/gui/qt4/input_manager.cpp
index b6463b3..a3a3937 100644
--- a/modules/gui/qt4/input_manager.cpp
+++ b/modules/gui/qt4/input_manager.cpp
@@ -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 */




More information about the vlc-devel mailing list