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 2de523d..d65962b 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 );
 }