don't drop contact in the same group if

destination jid belongs to other account
This commit is contained in:
Dimitur Kirov 2006-05-31 11:45:04 +00:00
parent 01c37775bf
commit 4aa6c95398
1 changed files with 3 additions and 0 deletions

View File

@ -3168,6 +3168,9 @@ _('If "%s" accepts this request you will know his or her status.') % jid)
is_big_brother = False is_big_brother = False
if model.iter_has_child(iter_source): if model.iter_has_child(iter_source):
is_big_brother = True is_big_brother = True
if not c_dest:
# c_dest is None if jid_dest doesn't belong to account
return
self.on_drop_in_contact(treeview, account, c_source, c_dest, self.on_drop_in_contact(treeview, account, c_source, c_dest,
is_big_brother, context, etime) is_big_brother, context, etime)
return return