From b3aec8e6f97b6a6860cd590edccc4df128c5e631 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Fri, 29 Jun 2012 19:39:53 +0300 Subject: [PATCH] Bring window to front after restoring from systray --- src/mainwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 72996b5e5..6f9aad239 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -705,6 +705,8 @@ void MainWindow::toggleVisibility(QSystemTrayIcon::ActivationReason e) { setWindowState(windowState() & ~Qt::WindowMinimized | Qt::WindowActive); // Then show it show(); + raise(); + activateWindow(); }else{ hide(); }