Revision: 27452 http://sourceforge.net/p/bibdesk/svn/27452 Author: hofman Date: 2022-05-21 18:03:12 +0000 (Sat, 21 May 2022) Log Message: ----------- get value only when needed
Modified Paths: -------------- trunk/bibdesk/BDSKEditor.m Modified: trunk/bibdesk/BDSKEditor.m =================================================================== --- trunk/bibdesk/BDSKEditor.m 2022-05-21 17:28:21 UTC (rev 27451) +++ trunk/bibdesk/BDSKEditor.m 2022-05-21 18:03:12 UTC (rev 27452) @@ -2528,10 +2528,10 @@ [self resetFields]; } else { // a field value changed - // don't use newValue, because this can be the parent's value - NSString *tmpValue = [publication valueOfField:changeKey] ?: @""; NSUInteger row = [fields indexOfObject:changeKey]; if (row != NSNotFound) { + // don't use newValue, because this can be the parent's value + NSString *tmpValue = [publication valueOfField:changeKey] ?: @""; BDSKEditorTextField *textField = [self textFieldAtRow:row]; if ([textField currentEditor]) [[textField currentEditor] setString:[textField formatter] ? [[textField formatter] editingStringForObjectValue:tmpValue] : tmpValue]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Bibdesk-commit mailing list Bibdesk-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bibdesk-commit