changeset 9aa9734caa39 in /home/hg/repos/gajim

details:http://hg.gajim.org/gajim?cmd=changeset;node=9aa9734caa39
description: Fix var name

diffstat:

 src/dialogs.py |  17 ++++++++++-------
 1 files changed, 10 insertions(+), 7 deletions(-)

diffs (48 lines):

diff -r ee312f926684 -r 9aa9734caa39 src/dialogs.py
--- a/src/dialogs.py    Fri Dec 03 13:47:44 2010 +0300
+++ b/src/dialogs.py    Fri Dec 03 15:38:18 2010 +0300
@@ -94,8 +94,8 @@
         self.dialog.show_all()
         if self.changes_made:
             for (contact, account) in self.list_:
-                gajim.connections[account].update_contact(contact.jid, 
contact.name,
-                        contact.groups)
+                gajim.connections[account].update_contact(contact.jid,
+                    contact.name, contact.groups)
 
     def on_edit_groups_dialog_response(self, widget, response_id):
         if response_id == gtk.RESPONSE_CLOSE:
@@ -106,7 +106,8 @@
         Remove group group from all contacts and all their brothers
         """
         for (contact, account) in self.list_:
-            gajim.interface.roster.remove_contact_from_groups(contact.jid, 
account, [group])
+            gajim.interface.roster.remove_contact_from_groups(contact.jid,
+                account, [group])
 
         # FIXME: Ugly workaround.
         gajim.interface.roster.draw_group(_('General'), account)
@@ -116,9 +117,11 @@
         Add group group to all contacts and all their brothers
         """
         for (contact, account) in self.list_:
-            gajim.interface.roster.add_contact_to_groups(contact.jid, account, 
[group])
-
-        # FIXME: Ugly workaround. Maybe we haven't been in any group (defaults 
to General)
+            gajim.interface.roster.add_contact_to_groups(contact.jid, account,
+                [group])
+
+        # FIXME: Ugly workaround.
+        # Maybe we haven't been in any group (defaults to General)
         gajim.interface.roster.draw_group(_('General'), account)
 
     def on_add_button_clicked(self, widget):
@@ -3398,7 +3401,7 @@
                         u.name = model[iter_][2]
                     gajim.connections[self.account].update_contact(jid,
                             model[iter_][2], groups)
-                    self.draw_contact(jid, account)
+                    self.draw_contact(jid, self.account)
                     # Update opened chat
                     ctrl = gajim.interface.msg_win_mgr.get_control(jid, 
self.account)
                     if ctrl:
_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to