fix roster item exchange remove suggestion
This commit is contained in:
parent
8622a3cca7
commit
f207b114a6
|
@ -2891,7 +2891,7 @@ class RosterItemExchangeWindow:
|
||||||
groups = groups + group
|
groups = groups + group
|
||||||
else:
|
else:
|
||||||
groups = groups + group + ', '
|
groups = groups + group + ', '
|
||||||
if not is_right and is_in_roster:
|
if is_in_roster:
|
||||||
iter = model.append()
|
iter = model.append()
|
||||||
model.set(iter, 0, True, 1, jid, 2, name, 3, groups)
|
model.set(iter, 0, True, 1, jid, 2, name, 3, groups)
|
||||||
|
|
||||||
|
@ -2962,11 +2962,10 @@ class RosterItemExchangeWindow:
|
||||||
# it is selected
|
# it is selected
|
||||||
jid = model[iter][1].decode('utf-8')
|
jid = model[iter][1].decode('utf-8')
|
||||||
gajim.connections[self.account].unsubscribe(jid)
|
gajim.connections[self.account].unsubscribe(jid)
|
||||||
for c in gajim.contacts.get_contact(self.account, jid):
|
gajim.interface.roster.remove_contact(jid, self.account)
|
||||||
self.remove_contact(c, self.account)
|
|
||||||
gajim.contacts.remove_jid(self.account, jid)
|
gajim.contacts.remove_jid(self.account, jid)
|
||||||
iter = model.iter_next(iter)
|
iter = model.iter_next(iter)
|
||||||
InformationDialog('Added %s contacts' % str(a))
|
InformationDialog('Removed %s contacts' % str(a))
|
||||||
self.window.destroy()
|
self.window.destroy()
|
||||||
|
|
||||||
def on_cancel_button_clicked(self, widget):
|
def on_cancel_button_clicked(self, widget):
|
||||||
|
|
Loading…
Reference in New Issue