Fix drag and drop within the same group.
This commit is contained in:
parent
0e519bce9e
commit
7259f95b0b
|
@ -3671,7 +3671,8 @@ class RosterWindow:
|
|||
if is_big_brother:
|
||||
# add whole metacontact to new group
|
||||
self.add_contact_to_groups(c_source.jid, account, [grp_dest,])
|
||||
# remove after we have so contact is not moved in General between
|
||||
# remove afterwards so the contact is not moved to General in the meantime
|
||||
if grp_dest != grp_source:
|
||||
self.remove_contact_from_groups(c_source.jid, account, [grp_source,])
|
||||
else:
|
||||
# Normal contact or little brother
|
||||
|
@ -3697,7 +3698,8 @@ class RosterWindow:
|
|||
else:
|
||||
# Normal contact
|
||||
self.add_contact_to_groups(c_source.jid, account, [grp_dest,])
|
||||
# remove after we have so contact is not moved in General between
|
||||
# remove afterwards so the contact is not moved to General in the meantime
|
||||
if grp_dest != grp_source:
|
||||
self.remove_contact_from_groups(c_source.jid, account, [grp_source,])
|
||||
|
||||
if context.action in (gtk.gdk.ACTION_MOVE, gtk.gdk.ACTION_COPY):
|
||||
|
|
Loading…
Reference in New Issue