summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/gui/preferenceswindow.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/bitmask/gui/preferenceswindow.py')
-rw-r--r--src/leap/bitmask/gui/preferenceswindow.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/leap/bitmask/gui/preferenceswindow.py b/src/leap/bitmask/gui/preferenceswindow.py
index a71f4e5c..baa71252 100644
--- a/src/leap/bitmask/gui/preferenceswindow.py
+++ b/src/leap/bitmask/gui/preferenceswindow.py
@@ -20,7 +20,8 @@ Preferences window
"""
from PySide import QtCore, QtGui
-from leap.bitmask.services import EIP_SERVICE, MX_SERVICE
+from leap.bitmask.services import EIP_SERVICE
+from leap.bitmask._components import HAS_EIP
from leap.bitmask.logs.utils import get_logger
from leap.bitmask.gui.ui_preferences import Ui_Preferences
@@ -120,7 +121,8 @@ class PreferencesWindow(QtGui.QDialog):
"""
Adds the pages for the different configuration categories.
"""
- self._account_page = PreferencesAccountPage(self, self.account, self.app)
+ self._account_page = PreferencesAccountPage(
+ self, self.account, self.app)
self._vpn_page = PreferencesVpnPage(self, self.account, self.app)
self._email_page = PreferencesEmailPage(self, self.account, self.app)
@@ -178,6 +180,7 @@ class PreferencesWindow(QtGui.QDialog):
if account != self.account:
return
- self._vpn_item.setHidden(not EIP_SERVICE in services)
+ if HAS_EIP:
+ self._vpn_item.setHidden(EIP_SERVICE not in services)
# self._email_item.setHidden(not MX_SERVICE in services)
# ^^ disable email for now, there is nothing there yet.