[vlc-devel] commit: Qt: Fix minimalView state in menus. (Jean-Baptiste Kempf )

git version control git at videolan.org
Sun Feb 8 03:40:11 CET 2009


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Feb  8 03:38:59 2009 +0100| [c3bea09ca804fd33fdfdd5f3f0b039b3a4f95b77] | committer: Jean-Baptiste Kempf 

Qt: Fix minimalView state in menus.

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

 modules/gui/qt4/main_interface.cpp |    5 ++---
 modules/gui/qt4/menus.cpp          |    2 +-
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/modules/gui/qt4/main_interface.cpp b/modules/gui/qt4/main_interface.cpp
index 34cc1de..5f8de7e 100644
--- a/modules/gui/qt4/main_interface.cpp
+++ b/modules/gui/qt4/main_interface.cpp
@@ -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 */
diff --git a/modules/gui/qt4/menus.cpp b/modules/gui/qt4/menus.cpp
index 42ef79d..adf625b 100644
--- a/modules/gui/qt4/menus.cpp
+++ b/modules/gui/qt4/menus.cpp
@@ -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() );




More information about the vlc-devel mailing list