From: Manuel Nickschas Date: Sun, 29 Jan 2012 22:49:56 +0000 (+0100) Subject: Bring Quassel to front on tray icon click X-Git-Tag: 0.8-beta1~33 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=7a1f4908421fe7e542940aae057eeaf33b301c92;hp=c83924a406438a3d51b496737a598ead54b44856;ds=sidebyside 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! --- 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;