1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

properly unminimize

This commit is contained in:
dubslow 2014-11-10 03:22:20 -06:00 committed by Tux3 / Mlkj / !Lev.uXFMLA
parent f2cc486744
commit 37a5c637f5

View File

@ -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;