diff src/stdui/ui_profile_manager.py @ 1212:628e320eab1f

memory: Sessions.newSession can be called with a forced session ID
author souliane <souliane@mailoo.org>
date Sun, 21 Sep 2014 13:10:55 +0200
parents 90f82f4ee405
children cfd636203e8f
line wrap: on
line diff
--- a/src/stdui/ui_profile_manager.py	Sun Sep 21 13:06:53 2014 +0200
+++ b/src/stdui/ui_profile_manager.py	Sun Sep 21 13:10:55 2014 +0200
@@ -114,7 +114,7 @@
             server = self.host.memory.getParamA(C.FORCE_SERVER_PARAM, "Connection", profile_key=profile)
             if not server:
                 server = jid.parse(self.host.memory.getParamA('JabberID', "Connection", profile_key=profile))[1]
-            session_id, session_data = self._sessions.newSession({'count': 0, 'server': server}, profile)
+            session_id, session_data = self._sessions.newSession({'count': 0, 'server': server}, profile=profile)
         if session_data['count'] > 2:  # 3 attempts with a new password after the initial try
             self._sessions.profileDelUnique(profile)
             _dialog = xml_tools.XMLUI('popup', title=D_('Connection error'))