Revision: 30061
          http://sourceforge.net/p/bibdesk/svn/30061
Author:   hofman
Date:     2026-02-25 22:41:59 +0000 (Wed, 25 Feb 2026)
Log Message:
-----------
reset custom field rows when failing to reload fields due to failure to commit

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

Modified: trunk/bibdesk/BDSKEditor.m
===================================================================
--- trunk/bibdesk/BDSKEditor.m  2026-02-25 18:03:40 UTC (rev 30060)
+++ trunk/bibdesk/BDSKEditor.m  2026-02-25 22:41:59 UTC (rev 30061)
@@ -2462,14 +2462,17 @@
 // so we can be sure it is performed after the publication
 - (void)customFieldsDidChange:(NSNotification *)notification{
     BDSKFieldTypeMask change = [[[notification userInfo] 
objectForKey:BDSKChangedFieldTypesKey] unsignedIntegerValue];
+    NSIndexSet *savedRows = customFieldRows;
     NSArray *currentFields = nil;
     if ((change & (BDSKFieldTypeMaskInteger | BDSKFieldTypeMaskDefault)))
         currentFields = [self currentFields];
-    if (currentFields && [self commitEditingTableTextField])
+    if (currentFields && [self commitEditingTableTextField]) {
         [self reloadTableWithFields:currentFields ignoreEditing:nil];
-    else
+    } else {
+        customFieldRows = savedRows;
         if ((change & (BDSKFieldTypeMaskURL | BDSKFieldTypeMaskCitation)))
             [self updateTableViewDisplay];
+    }
     if ((change & BDSKFieldTypeMaskInteger))
         [self setupCollectionView];
     if ((change & BDSKFieldTypeMaskPerson))

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

Reply via email to