Browse Source

Fix window visibility toggling bug with "minimized to systray" enabled

The issue seemed to affect Windows only.
adaptive-webui-19844
Christophe Dumez 13 years ago
parent
commit
d26179cca0
  1. 5
      src/mainwindow.cpp

5
src/mainwindow.cpp

@ -702,9 +702,10 @@ void MainWindow::toggleVisibility(QSystemTrayIcon::ActivationReason e) { @@ -702,9 +702,10 @@ void MainWindow::toggleVisibility(QSystemTrayIcon::ActivationReason e) {
if (!unlockUI())
return;
}
// Make sure the window is not minimized
setWindowState(windowState() & ~Qt::WindowMinimized | Qt::WindowActive);
// Then show it
show();
raise();
activateWindow();
}else{
hide();
}

Loading…
Cancel
Save