Qt4 - GotoTime: force emission of update() in the IM, in order to fix Trax#33
authorJean-Baptiste Kempf <jb@videolan.org>
Sat, 8 Sep 2007 10:56:44 +0000 (10:56 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 8 Sep 2007 10:56:44 +0000 (10:56 +0000)
modules/gui/qt4/dialogs/gototime.cpp
modules/gui/qt4/input_manager.cpp

index 56311c9..c3aba13 100644 (file)
@@ -108,4 +108,6 @@ void GotoTimeDialog::close()
         var_SetTime( THEMIM->getInput(), "time", i_time );
     }
     this->toggleVisible();
+    timeEdit->setTime( QTime( 0, 0, 0) );
+    THEMIM->getIM()->update();
 }
index 18ddc5c..36459d6 100644 (file)
@@ -109,7 +109,7 @@ void InputManager::update()
         val.i_int = 0;
         var_Change( p_input, "chapter", VLC_VAR_CHOICESCOUNT, &val, NULL );
         if( val.i_int > 0 )
-        {          
+        {
             emit navigationChanged( 1 ); // 1 = chapter, 2 = title, 0 = NO
         }
         else