Revision: 29303
http://sourceforge.net/p/bibdesk/svn/29303
Author: hofman
Date: 2025-07-19 16:20:16 +0000 (Sat, 19 Jul 2025)
Log Message:
-----------
no need for variable equal to parameter
Modified Paths:
--------------
trunk/bibdesk/BDSKEditor.m
Modified: trunk/bibdesk/BDSKEditor.m
===================================================================
--- trunk/bibdesk/BDSKEditor.m 2025-07-18 22:00:04 UTC (rev 29302)
+++ trunk/bibdesk/BDSKEditor.m 2025-07-19 16:20:16 UTC (rev 29303)
@@ -2202,16 +2202,15 @@
}
- (void)recordChangingField:(NSString *)fieldName toValue:(NSString *)value{
- NSString *theField = fieldName;
NSString *oldValue = [[publication valueOfField:fieldName] copy];
- [publication setField:theField toValue:value];
+ [publication setField:fieldName toValue:value];
[[self undoManager] setActionName:NSLocalizedString(@"Edit
Publication", @"Undo action name")];
- [self userChangedField:theField from:oldValue to:value];
+ [self userChangedField:fieldName from:oldValue to:value];
- if ([theField isEqualToString:BDSKLocalUrlString] && [[NSUserDefaults
standardUserDefaults] boolForKey:BDSKUseLocalUrlAndUrlKey] && [[NSUserDefaults
standardUserDefaults] boolForKey:BDSKFilePapersAutomaticallyKey]) {
+ if ([fieldName isEqualToString:BDSKLocalUrlString] && [[NSUserDefaults
standardUserDefaults] boolForKey:BDSKUseLocalUrlAndUrlKey] && [[NSUserDefaults
standardUserDefaults] boolForKey:BDSKFilePapersAutomaticallyKey]) {
if ([publication autoFileLocalUrl])
[self setStatus:NSLocalizedString(@"Autofiled linked
file.",@"Status message")];
}
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