adium 2559:604fa8a4e257: Handle dragging a contact from a chat's...
commits at adium.im
commits at adium.im
Mon Jul 27 21:48:23 UTC 2009
details: http://hg.adium.im/adium/rev/604fa8a4e257
revision: 2559:604fa8a4e257
author: Evan Schoenberg
date: Mon Jul 27 16:51:05 2009 -0500
Handle dragging a contact from a chat's group list to a contact list group appropriately. Fixe #12358
diffs (21 lines):
diff -r 037f9ce70de2 -r 604fa8a4e257 Source/AIListController.m
--- a/Source/AIListController.m Mon Jul 27 16:46:17 2009 -0500
+++ b/Source/AIListController.m Mon Jul 27 16:51:05 2009 -0500
@@ -720,8 +720,15 @@
if ([NSEvent optionKey]) {
sourceGroups = [NSSet set];
} else {
- if ([proxyObject.containingObject isKindOfClass:[AIMetaContact class]]) {
- // If we're dragging -from- a meta contact, just do an add; the move performs the removal from the meta.
+ if ([proxyObject.containingObject isKindOfClass:[AIMetaContact class]] ||
+ [proxyObject.containingObject isKindOfClass:[AIChat class]]) {
+ /* Passing an empty sourceGroups set is equivalent to a simple addition.
+ *
+ * If we're dragging -from- a meta contact, just do an add;
+ * the move performs the removal from the meta.
+ *
+ * If we're dragging from a chat, just do an add; a move is nonsense.
+ */
sourceGroups = [NSSet set];
} else {
sourceGroups = [NSSet setWithObject:proxyObject.containingObject];
More information about the commits
mailing list