changeset 446:39a8ca1a2675

Primitivus: fixed redraw on profile change in profile manager
author Goffi <goffi@goffi.org>
date Sun, 04 Dec 2011 00:05:41 +0100
parents 1c1d1a4994c4
children 485a6d125498
files frontends/src/primitivus/profile_manager.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/frontends/src/primitivus/profile_manager.py	Sun Dec 04 00:03:15 2011 +0100
+++ b/frontends/src/primitivus/profile_manager.py	Sun Dec 04 00:05:41 2011 +0100
@@ -108,14 +108,15 @@
     def onProfileChange(self, list_wid):
         def setJID(jabberID):
             self.login_wid.set_edit_text(jabberID)
+            self.host.redraw()
         def setPassword(password):
             self.pass_wid.set_edit_text(password)
+            self.host.redraw()
 
         profile_name = list_wid.getSelectedValue()
         if profile_name:
             self.host.bridge.asyncGetParamA("JabberID", "Connection", profile_key=profile_name, callback=setJID, errback=self.getParamError)
             self.host.bridge.asyncGetParamA("Password", "Connection", profile_key=profile_name, callback=setPassword, errback=self.getParamError)
-        self.host.redraw()
         
     def onConnectProfile(self, button):
         profile_name = self.list_profile.getSelectedValue()