]> git.sesse.net Git - vlc/commitdiff
Qt4 - Forgotten file in a previous commit ( for the toggleVisible bug in QSystray )
authorJean-Baptiste Kempf <jb@videolan.org>
Thu, 31 May 2007 17:02:40 +0000 (17:02 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 31 May 2007 17:02:40 +0000 (17:02 +0000)
modules/gui/qt4/main_interface.cpp

index f4600eff0f7bfe5d708e6df2024a6a26d415fa02..76d954e28c51a32722829aef0d304d407f5d35a4 100644 (file)
@@ -320,8 +320,8 @@ void MainInterface::updateSystrayMenu( int status )
 
 void MainInterface::toggleUpdateSystrayMenu()
 {
-    QVLCMenu::updateSystrayMenu( this, p_intf );
     toggleVisible();
+    QVLCMenu::updateSystrayMenu( this, p_intf );
 }
 
 void MainInterface::handleSystrayClick( QSystemTrayIcon::ActivationReason reason )
@@ -329,7 +329,8 @@ void MainInterface::handleSystrayClick( QSystemTrayIcon::ActivationReason reason
     switch( reason )
     {
         case QSystemTrayIcon::Trigger:
-            this->toggleVisible(); break;
+            toggleUpdateSystrayMenu();
+            break;
         case QSystemTrayIcon::MiddleClick:
             sysTray->showMessage( qtr( "VLC media player" ),
                     qtr( "Control menu for the player" ),