From 7a1f4908421fe7e542940aae057eeaf33b301c92 Mon Sep 17 00:00:00 2001 From: Manuel Nickschas Date: Sun, 29 Jan 2012 23:49:56 +0100 Subject: [PATCH] Bring Quassel to front on tray icon click When the quassel window is below other windows it would be nice to have it raised on top of the others when clicking on the system tray icon. Now it is just hidden and you have to click on it once more to get it to the top. Fixes #1135. Thanks to parapente for the patch! --- src/uisupport/graphicalui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uisupport/graphicalui.cpp b/src/uisupport/graphicalui.cpp index ba772f0c..a35a2975 100644 --- a/src/uisupport/graphicalui.cpp +++ b/src/uisupport/graphicalui.cpp @@ -201,7 +201,7 @@ bool GraphicalUi::checkMainWidgetVisibility(bool perform) { } #else - if(!mainWidget()->isVisible() || mainWidget()->isMinimized()) { + if(!mainWidget()->isVisible() || mainWidget()->isMinimized() || !mainWidget()->isActiveWindow()) { if(perform) minimizeRestore(true); return true; -- 2.20.1