From 37a5c637f59196e2e594e4c30ad927deda39b2ba Mon Sep 17 00:00:00 2001 From: dubslow Date: Mon, 10 Nov 2014 03:22:20 -0600 Subject: [PATCH] properly unminimize --- src/widget/widget.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/widget/widget.cpp b/src/widget/widget.cpp index 1aa47e9f0..3f2792de6 100644 --- a/src/widget/widget.cpp +++ b/src/widget/widget.cpp @@ -329,8 +329,7 @@ void Widget::changeEvent(QEvent *event) { if (event->type() == QEvent::WindowStateChange) { - if(isMinimized() == true - && Settings::getInstance().getMinimizeToTray() == true) + if(isMinimized() && Settings::getInstance().getMinimizeToTray()) { this->hide(); } @@ -770,6 +769,8 @@ void Widget::newMessageAlert(GenericChatroomWidget* chat) if ((isMinimized() || !isActiveWindow()) && Settings::getInstance().getShowInFront()) { this->show(); + showNormal(); + activateWindow(); emit chat->chatroomWidgetClicked(chat); } static QByteArray sndData;