Revision: 24010
          http://sourceforge.net/p/bibdesk/svn/24010
Author:   hofman
Date:     2019-07-12 21:57:11 +0000 (Fri, 12 Jul 2019)
Log Message:
-----------
notify document of removing replaced URL on download

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

Modified: trunk/bibdesk/BibItem.m
===================================================================
--- trunk/bibdesk/BibItem.m     2019-07-12 21:51:19 UTC (rev 24009)
+++ trunk/bibdesk/BibItem.m     2019-07-12 21:57:11 UTC (rev 24010)
@@ -3224,8 +3224,11 @@
                     [self removeObjectFromFilesAtIndex:idx];
                 [self insertObject:file inFilesAtIndex:realIdx == NSNotFound ? 
idx : realIdx];
                 if (useLocalUrl == NO) {
-                    if ([owner isDocument])
+                    if ([owner isDocument]) {
+                        if (replace && realIdx != NSNotFound)
+                            [(BibDocument *)[self owner] 
userRemovedURL:[download URL] forPublication:self];
                         [(BibDocument *)[self owner] userAddedURL:fileURL 
forPublication:self];
+                    }
                     if (autoFile)
                         [self autoFileLinkedFile:file];
                 }

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