diff options
author | Tomas Touceda <chiiph@leap.se> | 2013-06-19 21:28:31 -0300 |
---|---|---|
committer | Tomas Touceda <chiiph@leap.se> | 2013-06-19 21:28:31 -0300 |
commit | 37818048218ede8c32399294dcaf3a2e8467c4c9 (patch) | |
tree | 0e9c0c08c048e9a68930ccbf234be8ac03083b94 /src | |
parent | 82192c7ff55efcc669d710f51eefa7279e9a8161 (diff) | |
parent | 6cb47a3627286dc64f781b5412ec66b6ab92560c (diff) |
Merge remote-tracking branch 'kali/bug/osx-systray-menu-glitch' into develop
Diffstat (limited to 'src')
-rw-r--r-- | src/leap/gui/mainwindow.py | 13 |
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): """ |