Revision: 24011
http://sourceforge.net/p/bibdesk/svn/24011
Author: hofman
Date: 2019-07-12 22:11:35 +0000 (Fri, 12 Jul 2019)
Log Message:
-----------
always call document callbacks when downloading files
Modified Paths:
--------------
trunk/bibdesk/BibItem.m
Modified: trunk/bibdesk/BibItem.m
===================================================================
--- trunk/bibdesk/BibItem.m 2019-07-12 21:57:11 UTC (rev 24010)
+++ trunk/bibdesk/BibItem.m 2019-07-12 22:11:35 UTC (rev 24011)
@@ -3223,26 +3223,22 @@
if (replace && realIdx != NSNotFound)
[self removeObjectFromFilesAtIndex:idx];
[self insertObject:file inFilesAtIndex:realIdx == NSNotFound ?
idx : realIdx];
- if (useLocalUrl == NO) {
- 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];
+ if ([owner isDocument]) {
+ if (replace && realIdx != NSNotFound)
+ [(BibDocument *)[self owner] userRemovedURL:[download
URL] forPublication:self];
+ [(BibDocument *)[self owner] userAddedURL:fileURL
forPublication:self];
}
+ if (useLocalUrl == NO &&autoFile)
+ [self autoFileLinkedFile:file];
[file release];
}
} else {
NSString *oldValue = [self valueOfField:BDSKLocalUrlString
inherit:NO] ?: @"";
[self setField:BDSKLocalUrlString toURLValue:fileURL];
- if (useLocalUrl) {
- if ([owner isDocument])
- [(BibDocument *)[self owner]
userChangedField:BDSKLocalUrlString ofPublication:self from:oldValue to:[self
valueOfField:BDSKLocalUrlString inherit:NO]];
- if (autoFile)
- [self autoFileLocalUrl];
- }
+ if ([owner isDocument])
+ [(BibDocument *)[self owner]
userChangedField:BDSKLocalUrlString ofPublication:self from:oldValue to:[self
valueOfField:BDSKLocalUrlString inherit:NO]];
+ if (useLocalUrl && autoFile)
+ [self autoFileLocalUrl];
}
}
}
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