Revision: 17985
          http://bibdesk.svn.sourceforge.net/bibdesk/?rev=17985&view=rev
Author:   hofman
Date:     2011-06-29 11:11:13 +0000 (Wed, 29 Jun 2011)

Log Message:
-----------
autofile after generating cite key, because the file name may depend on it

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

Modified: trunk/bibdesk/BibDocument.m
===================================================================
--- trunk/bibdesk/BibDocument.m 2011-06-29 10:09:00 UTC (rev 17984)
+++ trunk/bibdesk/BibDocument.m 2011-06-29 11:11:13 UTC (rev 17985)
@@ -2079,13 +2079,6 @@
        [self addPublications:newPubs];
     if ([self hasLibraryGroupSelected])
         [self selectPublications:newPubs];
-       if (pubsToAutoFile != nil){
-        // tried checking [pb isEqual:[NSPasteboard 
pasteboardWithName:NSDragPboard]] before using delay, but pb is a 
CFPasteboardUnique
-        for (pub in pubsToAutoFile) {
-            for (BDSKLinkedFile *file in [pub localFiles])
-                [pub autoFileLinkedFile:file];
-        }
-    }
     
     BOOL autoGenerate = [[NSUserDefaults standardUserDefaults] 
boolForKey:BDSKCiteKeyAutogenerateKey];
     NSMutableArray *autogeneratePubs = [NSMutableArray 
arrayWithCapacity:[newPubs count]];
@@ -2101,6 +2094,11 @@
     }
     [self generateCiteKeysForPublications:autogeneratePubs];
     
+    for (pub in pubsToAutoFile) {
+        for (BDSKLinkedFile *file in [pub localFiles])
+            [pub autoFileLinkedFile:file];
+    }
+    
     // set Date-Added to the current date, since unarchived items will have 
their own (incorrect) date
     NSString *importDate = [[NSDate date] description];
     for (pub in newPubs)


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

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to