summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/gui/mainwindow.py
diff options
context:
space:
mode:
authorIvan Alejandro <ivanalejandro0@gmail.com>2014-04-22 13:59:30 -0300
committerIvan Alejandro <ivanalejandro0@gmail.com>2014-04-22 13:59:30 -0300
commitb84bcd9e5282dffe7d1208b84f0ab2e31a28cae5 (patch)
tree9d77009df5b3c38e8cab267ba50f959d7b25c119 /src/leap/bitmask/gui/mainwindow.py
parentb0dc286e5381d3328f3408b97541818e47865ad5 (diff)
Show specific note for providers not supporting mx.
Also add a helper method to disable the ui and show a message.
Diffstat (limited to 'src/leap/bitmask/gui/mainwindow.py')
-rw-r--r--src/leap/bitmask/gui/mainwindow.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/leap/bitmask/gui/mainwindow.py b/src/leap/bitmask/gui/mainwindow.py
index 3296bb04..b0369e5b 100644
--- a/src/leap/bitmask/gui/mainwindow.py
+++ b/src/leap/bitmask/gui/mainwindow.py
@@ -566,8 +566,14 @@ class MainWindow(QtGui.QMainWindow):
"""
domain = self._login_widget.get_selected_provider()
logged_user = "{0}@{1}".format(self._logged_user, domain)
+
+ has_mx = True
+ if self._logged_user is not None:
+ provider_config = self._get_best_provider_config()
+ has_mx = provider_config.provides_mx()
+
akm = AdvancedKeyManagement(
- self, logged_user, self._keymanager, self._soledad)
+ self, has_mx, logged_user, self._keymanager, self._soledad)
akm.show()
@QtCore.Slot()