Revision: 30089
http://sourceforge.net/p/bibdesk/svn/30089
Author: hofman
Date: 2026-03-01 15:40:45 +0000 (Sun, 01 Mar 2026)
Log Message:
-----------
combine autogenerate masks fromm change and possible autofile
Modified Paths:
--------------
trunk/bibdesk/BDSKEditor.m
Modified: trunk/bibdesk/BDSKEditor.m
===================================================================
--- trunk/bibdesk/BDSKEditor.m 2026-03-01 15:35:39 UTC (rev 30088)
+++ trunk/bibdesk/BDSKEditor.m 2026-03-01 15:40:45 UTC (rev 30089)
@@ -3549,12 +3549,14 @@
[[self undoManager] setActionName:NSLocalizedString(@"Edit Publication",
@"Undo action name")];
- [self userChangedField:fieldName from:oldValue to:value];
+ BDSKAutoGenerateStatus mask = [[self document] userChangedField:fieldName
ofPublication:publication from:oldValue to:value];
- if ([fieldName isEqualToString:BDSKLocalUrlString] && [[NSUserDefaults
standardUserDefaults] boolForKey:BDSKUseLocalUrlAndUrlKey] && [[NSUserDefaults
standardUserDefaults] boolForKey:BDSKFilePapersAutomaticallyKey]) {
- if ([publication autoFileLocalUrl])
- [self updateStatusForAutoGenerate:BDSKAutoFiled];
- }
+ if ([fieldName isEqualToString:BDSKLocalUrlString] &&
+ [[NSUserDefaults standardUserDefaults]
boolForKey:BDSKUseLocalUrlAndUrlKey] &&
+ [[NSUserDefaults standardUserDefaults]
boolForKey:BDSKFilePapersAutomaticallyKey] &&
+ [publication autoFileLocalUrl])
+ mask |= BDSKAutoFiled;
+ [self updateStatusForAutoGenerate:mask];
}
- (void)mergeWithPublication:(BibItem *)pub {
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