]> git.sesse.net Git - vlc/commitdiff
Qt4 - systray behaviour: first activate the Windows before hiding it.
authorJean-Baptiste Kempf <jb@videolan.org>
Mon, 6 Aug 2007 17:59:57 +0000 (17:59 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 6 Aug 2007 17:59:57 +0000 (17:59 +0000)
Closes #1249

modules/gui/qt4/main_interface.cpp

index 2de523d87053785121fb1b343ea5576992f9f138..d65962bc77b7df20893628930f2976379442bdc4 100644 (file)
@@ -460,7 +460,21 @@ void MainInterface::updateSystrayMenu( int status )
  */
 void MainInterface::toggleUpdateSystrayMenu()
 {
-    toggleVisible();
+    if( isHidden() )
+    {
+        show();
+    }
+    else
+    {
+        if( isActiveWindow() )
+        {
+            hide();
+        }
+        else
+        {
+            activateWindow();
+        }
+    }
     QVLCMenu::updateSystrayMenu( this, p_intf );
 }