diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp index e881e02ce..049c6911d 100644 --- a/src/gui/mainwindow.cpp +++ b/src/gui/mainwindow.cpp @@ -920,7 +920,7 @@ void MainWindow::toggleVisibility(QSystemTrayIcon::ActivationReason e) return; } // Make sure the window is not minimized - setWindowState(windowState() & (~Qt::WindowMinimized | Qt::WindowActive)); + setWindowState((windowState() & ~Qt::WindowMinimized) | Qt::WindowActive); // Then show it show(); raise();