summaryrefslogtreecommitdiff
path: root/src/leap
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2013-06-20 07:57:51 +0900
committerkali <kali@leap.se>2013-06-20 08:01:50 +0900
commit6cb47a3627286dc64f781b5412ec66b6ab92560c (patch)
tree5a2ac5347b3f8f8aecc8e96ad623546a34e2bc9e /src/leap
parent071119352a04698cf5dfaba0ae9c3827e016fb94 (diff)
do not apply systray menu workaround for osx
Closes: #2920
Diffstat (limited to 'src/leap')
-rw-r--r--src/leap/gui/mainwindow.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/leap/gui/mainwindow.py b/src/leap/gui/mainwindow.py
index a5d022e9..a3c601c5 100644
--- a/src/leap/gui/mainwindow.py
+++ b/src/leap/gui/mainwindow.py
@@ -39,6 +39,7 @@ from leap.gui.loggerwindow import LoggerWindow
from leap.gui.wizard import Wizard
from leap.gui.login import LoginWidget
from leap.gui.statuspanel import StatusPanelWidget
+from leap.platform_init import IS_MAC
from leap.services.eip.eipbootstrapper import EIPBootstrapper
from leap.services.eip.eipconfig import EIPConfig
from leap.services.eip.providerbootstrapper import ProviderBootstrapper
@@ -538,12 +539,12 @@ class MainWindow(QtGui.QMainWindow):
self._action_visible.setText(get_action(visible))
context_menu = self._systray.contextMenu()
- # for some reason, context_menu.show()
- # is failing in a way beyond my understanding.
- # (not working the first time it's clicked).
- # this works however.
- # XXX in osx it shows some glitches.
- context_menu.exec_(self._systray.geometry().center())
+ if not IS_MAC:
+ # for some reason, context_menu.show()
+ # is failing in a way beyond my understanding.
+ # (not working the first time it's clicked).
+ # this works however.
+ context_menu.exec_(self._systray.geometry().center())
def _toggle_visible(self):
"""