From: <ho...@us...> - 2006-03-26 19:14:41
|
Revision: 6014 Author: hofman Date: 2006-03-26 11:14:32 -0800 (Sun, 26 Mar 2006) ViewCVS: http://svn.sourceforge.net/bibdesk/?rev=6014&view=rev Log Message: ----------- Don't change groups when the document is nil (shared item). Modified Paths: -------------- trunk/bibdesk/BibItem.m Modified: trunk/bibdesk/BibItem.m =================================================================== --- trunk/bibdesk/BibItem.m 2006-03-26 19:13:52 UTC (rev 6013) +++ trunk/bibdesk/BibItem.m 2006-03-26 19:14:32 UTC (rev 6014) @@ -1915,7 +1915,7 @@ id groupName = [group name]; NSString *field = [group key]; OBASSERT(field != nil); - if([[self groupsForField:field] containsObject:groupName]) + if(document == nil || [[self groupsForField:field] containsObject:groupName]) return BDSKOperationIgnore; // otherwise build it if we have a value @@ -1966,7 +1966,7 @@ NSString *field = [group key]; OBASSERT(field != nil); NSSet *groupNames = [groups objectForKey:field]; - if([groupNames containsObject:groupName] == NO) + if(document == nil || [groupNames containsObject:groupName] == NO) return BDSKOperationIgnore; // otherwise build it if we have a value @@ -2099,7 +2099,7 @@ NSString *field = [group key]; OBASSERT(field != nil); NSSet *groupNames = [groups objectForKey:field]; - if([groupNames containsObject:groupName] == NO) + if(document == nil || [groupNames containsObject:groupName] == NO) return BDSKOperationIgnore; // otherwise build it if we have a value This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |