diff options
author | Ivan Alejandro <ivanalejandro0@gmail.com> | 2014-05-30 12:16:17 -0300 |
---|---|---|
committer | Ivan Alejandro <ivanalejandro0@gmail.com> | 2014-05-30 12:18:16 -0300 |
commit | 8b237f08b76bc94cfcd24d13945006a89c3aeeee (patch) | |
tree | 945c0d6e2204f9a7ff63497c80aa5fa51c1f9d6e /src/leap/bitmask/gui/mainwindow.py | |
parent | 0b1e346b0c3c5306bed639f955847bb50bdc1650 (diff) |
Change password skips soledad if mx is not enabled.
Use information from mainwindow instead of asking again to the backend.
Diffstat (limited to 'src/leap/bitmask/gui/mainwindow.py')
-rw-r--r-- | src/leap/bitmask/gui/mainwindow.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/leap/bitmask/gui/mainwindow.py b/src/leap/bitmask/gui/mainwindow.py index a0eb84a2..d46ef863 100644 --- a/src/leap/bitmask/gui/mainwindow.py +++ b/src/leap/bitmask/gui/mainwindow.py @@ -572,10 +572,13 @@ class MainWindow(QtGui.QMainWindow): Displays the preferences window. """ - user = self._login_widget.get_user() - prov = self._login_widget.get_selected_provider() - preferences = PreferencesWindow( - self, self._backend, self._soledad_started, user, prov) + user = self._logged_user + domain = self._login_widget.get_selected_provider() + mx_provided = False + if self._provider_details is not None: + mx_provided = MX_SERVICE in self._provider_details.services + preferences = PreferencesWindow(self, user, domain, self._backend, + self._soledad_started, mx_provided) self.soledad_ready.connect(preferences.set_soledad_ready) preferences.show() |