Browse Source

Bring window to front after restoring from systray

adaptive-webui-19844
Christophe Dumez 13 years ago
parent
commit
f4320cb58a
  1. 2
      src/mainwindow.cpp

2
src/mainwindow.cpp

@ -706,6 +706,8 @@ void MainWindow::toggleVisibility(QSystemTrayIcon::ActivationReason e) {
setWindowState(windowState() & ~Qt::WindowMinimized | Qt::WindowActive); setWindowState(windowState() & ~Qt::WindowMinimized | Qt::WindowActive);
// Then show it // Then show it
show(); show();
raise();
activateWindow();
}else{ }else{
hide(); hide();
} }

Loading…
Cancel
Save