Revision: 27478
          http://sourceforge.net/p/bibdesk/svn/27478
Author:   hofman
Date:     2022-05-26 09:05:09 +0000 (Thu, 26 May 2022)
Log Message:
-----------
Table should always be reloaded when crossref changes

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

Modified: trunk/bibdesk/BDSKEditor.m
===================================================================
--- trunk/bibdesk/BDSKEditor.m  2022-05-26 06:30:11 UTC (rev 27477)
+++ trunk/bibdesk/BDSKEditor.m  2022-05-26 09:05:09 UTC (rev 27478)
@@ -2442,7 +2442,7 @@
             [[[self textFieldAtRow:editedRow] currentEditor] 
setString:newValue ?: @""];
         if ([changeKey isEqualToString:BDSKCrossrefString] && [NSString 
isEmptyString:newValue] != [NSString isEmptyString:oldValue]) {
                        // Crossref field was added or removed
-            [self resetFields:BDSKNoReload];
+            [self resetFields:BDSKReloadTable];
         } else {
             // every field value could change, but not the displayed field 
names
             [self reloadTableWithFields:nil];
@@ -3395,6 +3395,10 @@
        }
 }
 
+- (void)reloadTable {
+    [self reloadTableWithFields:nil];
+}
+
 - (void)updateTableViewDisplay {
     [fields enumerateObjectsUsingBlock:^(NSString *field, NSUInteger row, BOOL 
*stop){
         BDSKEditorTextField *textField = [self textFieldAtRow:row];

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