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 f4600ef..76d954e 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" ),