Revision: 22583
          http://sourceforge.net/p/bibdesk/svn/22583
Author:   hofman
Date:     2018-09-12 09:45:18 +0000 (Wed, 12 Sep 2018)
Log Message:
-----------
copy group

Modified Paths:
--------------
    trunk/bibdesk/BibDocument_DataSource.m

Modified: trunk/bibdesk/BibDocument_DataSource.m
===================================================================
--- trunk/bibdesk/BibDocument_DataSource.m      2018-09-12 06:30:42 UTC (rev 
22582)
+++ trunk/bibdesk/BibDocument_DataSource.m      2018-09-12 09:45:18 UTC (rev 
22583)
@@ -991,9 +991,10 @@
         // change the name of the group first, so we can preserve the 
selection; we need to old group info to move though
         NSString *key = [(BDSKCategoryGroup *)group key];
         id name = [key isPersonField] ? (id)[BibAuthor authorWithName:newName] 
: (id)newName;
-        BDSKCategoryGroup *oldGroup = [[[BDSKCategoryGroup alloc] 
initWithName:[group name] key:key] autorelease];
+        BDSKCategoryGroup *oldGroup = [group copy];
         [(BDSKCategoryGroup *)group setName:name];
         [self movePublications:pubs fromGroup:oldGroup toGroupNamed:newName];
+        [oldGroup release];
         [pubs release];
     } else if([group isNameEditable]) {
         [(id<BDSKMutableGroup>)group setName:newName];

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to