From f4320cb58aa7e43504752d75dd3586d0261a0df2 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 c47ae0480..80b6a90c9 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -706,6 +706,8 @@ void MainWindow::toggleVisibility(QSystemTrayIcon::ActivationReason e) { setWindowState(windowState() & ~Qt::WindowMinimized | Qt::WindowActive); // Then show it show(); + raise(); + activateWindow(); }else{ hide(); }