Do not update metacontacts when nothing has changed. Fixes sending metacontact info to server when we expand a groupchat.

This commit is contained in:
Stephan Erb 2008-06-26 14:09:27 +00:00
parent a62328ecd3
commit 2cd24aa8ae
2 changed files with 3 additions and 3 deletions

View File

@ -393,9 +393,9 @@ class Contacts:
break
if found:
self._metacontacts_tags[account][tag].remove(found)
common.gajim.connections[account].store_metacontacts(
self._metacontacts_tags[account])
break
common.gajim.connections[account].store_metacontacts(
self._metacontacts_tags[account])
def has_brother(self, account, jid):
for account in self._metacontacts_tags:

View File

@ -5404,7 +5404,7 @@ class RosterWindow:
disconnect_icon = gtk.image_new_from_stock(gtk.STOCK_DISCONNECT, \
gtk.ICON_SIZE_MENU)
disconnect_menuitem.set_image(disconnect_icon)
disconnect_menuitem .connect('activate', self.on_disconnect, jid, account)
disconnect_menuitem.connect('activate', self.on_disconnect, jid, account)
menu.append(disconnect_menuitem)
item = gtk.SeparatorMenuItem() # separator