Commit f9b25cf4 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

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

http://forum.videolan.org/viewtopic.php?f=14&t=49386
parent 83bade22
...@@ -181,6 +181,12 @@ void InputManager::customEvent( QEvent *event ) ...@@ -181,6 +181,12 @@ void InputManager::customEvent( QEvent *event )
type != ItemStateChanged_Type ) type != ItemStateChanged_Type )
return; return;
if( type == ItemStateChanged_Type )
{
UpdateStatus();
UpdateNavigation();
}
if( !hasInput() ) return; if( !hasInput() ) return;
if( ( type != PositionUpdate_Type && if( ( type != PositionUpdate_Type &&
...@@ -242,7 +248,8 @@ void InputManager::UpdateNavigation() ...@@ -242,7 +248,8 @@ void InputManager::UpdateNavigation()
{ {
/* Update navigation status */ /* Update navigation status */
vlc_value_t val; val.i_int = 0; 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 ) if( val.i_int > 0 )
{ {
val.i_int = 0; val.i_int = 0;
...@@ -356,8 +363,6 @@ void InputManager::UpdateTeletext() ...@@ -356,8 +363,6 @@ void InputManager::UpdateTeletext()
telexToggle( false ); telexToggle( false );
} }
void InputManager::UpdateArt() void InputManager::UpdateArt()
{ {
/* Update Art meta */ /* Update Art meta */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment