Qt: Fix minimalView state in menus.
authorJean-Baptiste Kempf <jb@videolan.org>
Sun, 8 Feb 2009 02:38:59 +0000 (03:38 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 8 Feb 2009 02:39:57 +0000 (03:39 +0100)
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/menus.cpp

index 34cc1de..5f8de7e 100644 (file)
@@ -781,9 +781,6 @@ void MainInterface::dockPlaylist( pl_dock_e i_pos )
 
 void MainInterface::toggleMinimalView()
 {
-    /* HACK for minimalView, see menus.cpp */
-    if( !menuBar()->isVisible() ) QVLCMenu::minimalViewAction->toggle();
-
     if( i_visualmode != QT_ALWAYS_VIDEO_MODE &&
         i_visualmode != QT_MINIMAL_MODE )
     { /* NORMAL MODE then */
@@ -800,6 +797,8 @@ void MainInterface::toggleMinimalView()
     TOGGLEV( statusBar() );
     TOGGLEV( inputC );
     doComponentsUpdate();
+
+    QVLCMenu::minimalViewAction->setChecked( bgWasVisible );
 }
 
 /* Video widget cannot do this synchronously as it runs in another thread */
index 42ef79d..adf625b 100644 (file)
@@ -899,7 +899,7 @@ void QVLCMenu::PopupMenu( intf_thread_t *p_intf, bool show )
                 action->setChecked( !( mi->getControlsVisibilityStatus() &
                             CONTROLS_VISIBLE ) );
                 action = submenu->addAction( QIcon( "" ),
-                        qtr( "Toggle Fullscreen Interface" ),
+                        qtr( "Fullscreen Interface" ),
                         mi, SLOT( toggleFullScreen() ) );
                 action->setCheckable( true );
                 action->setChecked( mi->isFullScreen() );