diff options
author | Tomás Touceda <chiiph@leap.se> | 2014-04-22 14:31:45 -0300 |
---|---|---|
committer | Tomás Touceda <chiiph@leap.se> | 2014-04-22 14:31:45 -0300 |
commit | 9095efc3c98d043cd32a783b0bebba6baf259e55 (patch) | |
tree | efccbc98c6facbe7c980ea0b18f1f1b629e4801b /src/leap/bitmask/gui/mainwindow.py | |
parent | 26a6200054c923773ca665159c1c7186f1f1c0a6 (diff) | |
parent | d0b5734262a59e1ac86e9a9ed74f0744624e3554 (diff) |
Merge remote-tracking branch 'refs/remotes/ivan/feature/5513_update-note-in-akm' into develop
Diffstat (limited to 'src/leap/bitmask/gui/mainwindow.py')
-rw-r--r-- | src/leap/bitmask/gui/mainwindow.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/leap/bitmask/gui/mainwindow.py b/src/leap/bitmask/gui/mainwindow.py index f2b2eb3c..907d4ceb 100644 --- a/src/leap/bitmask/gui/mainwindow.py +++ b/src/leap/bitmask/gui/mainwindow.py @@ -566,9 +566,15 @@ class MainWindow(QtGui.QMainWindow): """ domain = self._login_widget.get_selected_provider() logged_user = "{0}@{1}".format(self._logged_user, domain) - self._akm = AdvancedKeyManagement( - logged_user, self._keymanager, self._soledad) - self._akm.show() + + 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, has_mx, logged_user, self._keymanager, self._soledad) + akm.show() @QtCore.Slot() def _show_preferences(self): |