Revision: 22647
http://sourceforge.net/p/bibdesk/svn/22647
Author: hofman
Date: 2018-09-21 21:56:50 +0000 (Fri, 21 Sep 2018)
Log Message:
-----------
Make sure publications added through scripting are not yet added to the document
Modified Paths:
--------------
trunk/bibdesk/BibDocument+Scripting.m
Modified: trunk/bibdesk/BibDocument+Scripting.m
===================================================================
--- trunk/bibdesk/BibDocument+Scripting.m 2018-09-21 21:35:00 UTC (rev
22646)
+++ trunk/bibdesk/BibDocument+Scripting.m 2018-09-21 21:56:50 UTC (rev
22647)
@@ -272,7 +272,7 @@
}
- (void)insertObject:(BibItem *)pub
inScriptingPublicationsAtIndex:(NSUInteger)idx {
- if ([pub macroResolver] == nil || [pub macroResolver] == macroResolver)
{
+ if (([pub macroResolver] == nil || [pub macroResolver] ==
macroResolver) && [pub owner] == nil) {
[self insertPublications:[NSArray arrayWithObjects:pub, nil]
atIndexes:[NSIndexSet indexSetWithIndex:idx]];
[[self undoManager]
setActionName:NSLocalizedString(@"AppleScript",@"Undo action name for
AppleScript")];
} else if ([[pub owner] isEqual:self] == NO) {
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