warnings--
authorManuel Nickschas <sputnick@quassel-irc.org>
Wed, 21 Jan 2009 23:32:09 +0000 (00:32 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 21 Jan 2009 23:32:09 +0000 (00:32 +0100)
src/qtui/mainwin.cpp

index db0860c..643df36 100644 (file)
@@ -712,11 +712,11 @@ void MainWin::hideToTray() {
 void MainWin::toggleMinimizedToTray() {
   if(windowState() & Qt::WindowMinimized) {
     // restore
 void MainWin::toggleMinimizedToTray() {
   if(windowState() & Qt::WindowMinimized) {
     // restore
-    setWindowState(windowState() & ~Qt::WindowMinimized | Qt::WindowActive);
+    setWindowState((windowState() & ~Qt::WindowMinimized) | Qt::WindowActive);
     show();
     raise();
   } else {
     show();
     raise();
   } else {
-    setWindowState(windowState() & ~Qt::WindowActive | Qt::WindowMinimized);
+    setWindowState((windowState() & ~Qt::WindowActive) | Qt::WindowMinimized);
     hideToTray();
   }
 }
     hideToTray();
   }
 }