summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-12-12 19:01:12 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-12-12 19:01:12 (GMT)
commit4644d6f1ae5136644b4c68bf70a8dcf6df63bece (patch)
treef501fcf37bfa30503acb0113b738f3400db2bca8
parent2a22744ffcea2505b8a0951d4a0791891b99158b (diff)
downloadswift-contrib-4644d6f1ae5136644b4c68bf70a8dcf6df63bece.zip
swift-contrib-4644d6f1ae5136644b4c68bf70a8dcf6df63bece.tar.bz2
Don't hide/show when clicking system tray on Mac.
Resolves: #323
-rw-r--r--Swift/QtUI/QtSystemTray.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Swift/QtUI/QtSystemTray.cpp b/Swift/QtUI/QtSystemTray.cpp
index d6180e6..d75e180 100644
--- a/Swift/QtUI/QtSystemTray.cpp
+++ b/Swift/QtUI/QtSystemTray.cpp
@@ -38,7 +38,9 @@ void QtSystemTray::setConnecting() {
void QtSystemTray::handleIconActivated(QSystemTrayIcon::ActivationReason reason) {
if (reason == QSystemTrayIcon::Trigger) {
+#ifndef Q_WS_MAC
emit clicked();
+#endif
}
}
void QtSystemTray::setStatusType(StatusShow::Type type) {