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

Merge branch 'pr1392'

This commit is contained in:
Dubslow 2015-03-16 17:35:21 -05:00
commit fc720f570d
No known key found for this signature in database
GPG Key ID: 3DB8E05315C220AA

View File

@ -433,23 +433,29 @@ void Widget::onIconClick(QSystemTrayIcon::ActivationReason reason)
{
show();
activateWindow();
showNormal();
}
else if (isMinimized())
{
forceShow();
activateWindow();
showNormal();
}
else
{
hide();
if (Settings::getInstance().getMinimizeToTray())
hide();
else
showMinimized();
}
break;
}
case QSystemTrayIcon::DoubleClick:
forceShow();
break;
case QSystemTrayIcon::MiddleClick:
hide();
if (Settings::getInstance().getMinimizeToTray())
hide();
else
showMinimized();
break;
case QSystemTrayIcon::Unknown:
if (isHidden())