Author: steve-e
Date: 2008-11-23 19:25:27 +0100 (Sun, 23 Nov 2008)
New Revision: 10688
Modified:
trunk/src/roster_window.py
Log:
Prevent a group from being hidden when its renamed in roster.
Modified: trunk/src/roster_window.py
===================================================================
--- trunk/src/roster_window.py 2008-11-23 17:17:44 UTC (rev 10687)
+++ trunk/src/roster_window.py 2008-11-23 18:25:27 UTC (rev 10688)
@@ -2710,8 +2710,8 @@
for jid in gajim.contacts.get_jid_list(acc):
contact = gajim.contacts.get_first_contact_from_jid(acc, jid)
if old_text in contact.groups:
+ self.add_contact_to_groups(jid, acc, [new_text,])
self.remove_contact_from_groups(jid, acc, [old_text,])
- self.add_contact_to_groups(jid, acc, [new_text,])
def on_canceled():
if 'rename' in gajim.interface.instances: