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

Fixing behaviour for a tray icon on OS X

This commit is contained in:
Ilya Kowalewski 2015-05-10 23:19:40 +03:00
parent a4df4125e3
commit f35f7e261a

View File

@ -489,6 +489,11 @@ void Widget::onIconClick(QSystemTrayIcon::ActivationReason reason)
{ {
case QSystemTrayIcon::Trigger: case QSystemTrayIcon::Trigger:
{ {
#if defined(Q_OS_MAC)
// We don't want to raise/minimize a window on icon click in OS X
break;
#endif
if (isHidden()) if (isHidden())
{ {
show(); show();