summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/gui/mainwindow.py
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2015-03-06 11:48:09 -0400
committerKali Kaneko <kali@leap.se>2015-03-09 14:47:56 -0400
commite73b98496e865b1b3573de53b7b6f48217543587 (patch)
tree5cf18533d143aefbe8fc64825666ff276bd424c0 /src/leap/bitmask/gui/mainwindow.py
parentf78e2d196a89c2881c1f9c72dd380033f957af1c (diff)
[bug] fix concatenation of full_user_id to make mail work0.8.2release/0.8.x
At some moment, the semantics of the username that we pick from the login widget changed, so that there's a duplication of the domain part in the full_user_id that we were passing to the keymanager and the mail services. This fix has already been done in the current develop branch (for next release 0.9.0), so there's no need to port it when merging it back. While it is true that there's no official release of the client supporting mail yet, this was an easy fix to port so we will do a 0.8.2 bugfix release so that the 0.8 branch can be used experimentally to test against development providers. This doesn't mean that you can expect support on the 0.8.x branch yet, it's only that there is one less bug in here :) Resolves: #6759 Releases: 0.8.2
Diffstat (limited to 'src/leap/bitmask/gui/mainwindow.py')
-rw-r--r--src/leap/bitmask/gui/mainwindow.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/leap/bitmask/gui/mainwindow.py b/src/leap/bitmask/gui/mainwindow.py
index cbf7a636..1583edae 100644
--- a/src/leap/bitmask/gui/mainwindow.py
+++ b/src/leap/bitmask/gui/mainwindow.py
@@ -1193,7 +1193,12 @@ class MainWindow(QtGui.QMainWindow, SignalTracker):
user = self._login_widget.get_logged_user()
domain = self._providers.get_selected_provider()
- full_user_id = make_address(user, domain)
+
+ # XXX fix for 0.8.2: this user id has changed!
+ # BUG -- do not merge into develop, it's already fixed there.
+ # full_user_id = make_address(user, domain)
+ full_user_id = user
+
self._mail_conductor.userid = full_user_id
self._start_eip_bootstrap()
self.ui.action_create_new_account.setEnabled(True)
@@ -1311,7 +1316,9 @@ class MainWindow(QtGui.QMainWindow, SignalTracker):
provider_domain = self._providers.get_selected_provider()
if flags.OFFLINE:
- full_user_id = make_address(username, provider_domain)
+ # BUG --- fix for 0.8.2
+ # full_user_id = make_address(username, provider_domain)
+ full_user_id = username
uuid = self._settings.get_uuid(full_user_id)
self._mail_conductor.userid = full_user_id