diff options
author | Tomás Touceda <chiiph@leap.se> | 2014-04-25 13:26:55 -0300 |
---|---|---|
committer | Tomás Touceda <chiiph@leap.se> | 2014-04-25 13:26:55 -0300 |
commit | 558d33fb8ffb884834153b5b941c7425723f45b7 (patch) | |
tree | c73587186c7b94bf797dda5ce4c6b73c937eb8d6 /src/leap/bitmask/gui/eip_status.py | |
parent | 55d4f043ee457bc780c7ea37a6b8ded448b0abdd (diff) | |
parent | 0408e01474d43acf0aefcb6fb664d3e48a0faf0b (diff) |
Merge remote-tracking branch 'refs/remotes/ivan/bug/5550_show-hide-services-according-provider' into develop
Diffstat (limited to 'src/leap/bitmask/gui/eip_status.py')
-rw-r--r-- | src/leap/bitmask/gui/eip_status.py | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/leap/bitmask/gui/eip_status.py b/src/leap/bitmask/gui/eip_status.py index bc31b91d..ca28b8bf 100644 --- a/src/leap/bitmask/gui/eip_status.py +++ b/src/leap/bitmask/gui/eip_status.py @@ -260,11 +260,12 @@ class EIPStatusWidget(QtGui.QWidget): self._service_name, self.tr("disabled"))) # Replace EIP tray menu with an action that displays a "disabled" text - menu = self._systray.contextMenu() - menu.insertAction( - self._eip_status_menu.menuAction(), - self._eip_disabled_action) - self._eip_status_menu.menuAction().setVisible(False) + if self.isVisible(): + menu = self._systray.contextMenu() + menu.insertAction( + self._eip_status_menu.menuAction(), + self._eip_disabled_action) + self._eip_status_menu.menuAction().setVisible(False) @QtCore.Slot() def enable_eip_start(self): @@ -278,7 +279,8 @@ class EIPStatusWidget(QtGui.QWidget): # Restore the eip action menu menu = self._systray.contextMenu() menu.removeAction(self._eip_disabled_action) - self._eip_status_menu.menuAction().setVisible(True) + if self.isVisible(): + self._eip_status_menu.menuAction().setVisible(True) # XXX disable (later) -------------------------- def set_eip_status(self, status, error=False): |