Revision: 27465
          http://sourceforge.net/p/bibdesk/svn/27465
Author:   hofman
Date:     2022-05-23 14:18:50 +0000 (Mon, 23 May 2022)
Log Message:
-----------
Reset fields when value not in fields changed. Should never happen if the 
previous condition is met.

Modified Paths:
--------------
    trunk/bibdesk/BDSKEditor.m

Modified: trunk/bibdesk/BDSKEditor.m
===================================================================
--- trunk/bibdesk/BDSKEditor.m  2022-05-23 08:59:04 UTC (rev 27464)
+++ trunk/bibdesk/BDSKEditor.m  2022-05-23 14:18:50 UTC (rev 27465)
@@ -2526,7 +2526,7 @@
         else if([changeKey isPersonField])
             [authorTableView reloadData];
         
-        if (([NSString isEmptyAsComplexString:newValue] != [NSString 
isEmptyAsComplexString:oldValue]) && [addedFields containsObject:changeKey] == 
NO && [[[BDSKTypeManager sharedManager] standardFieldsForType:[publication 
pubType]] containsObject:changeKey] == NO) {
+        if ((([NSString isEmptyAsComplexString:newValue] != [NSString 
isEmptyAsComplexString:oldValue]) && [addedFields containsObject:changeKey] == 
NO && [[[BDSKTypeManager sharedManager] standardFieldsForType:[publication 
pubType]] containsObject:changeKey] == NO) || [fields containsObject:changeKey] 
== NO) {
                        // a custom field was added or removed
             NSInteger editedRow = [tableView editedTextRow];
             if (editedRow != -1 && [[fields objectAtIndex:editedRow] 
isEqualToString:changeKey]) {

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

Reply via email to