Revision: 30019
          http://sourceforge.net/p/bibdesk/svn/30019
Author:   hofman
Date:     2026-02-19 17:11:05 +0000 (Thu, 19 Feb 2026)
Log Message:
-----------
make sure editing is finished in discardEditing

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

Modified: trunk/bibdesk/BDSKEditor.m
===================================================================
--- trunk/bibdesk/BDSKEditor.m  2026-02-19 16:47:49 UTC (rev 30018)
+++ trunk/bibdesk/BDSKEditor.m  2026-02-19 17:11:05 UTC (rev 30019)
@@ -357,7 +357,10 @@
             [publication setEditedValue:nil];
             [currentEditedView setString:[publication 
valueOfField:[currentEditedView identifier] inherit:NO] ?: @""];
             // make sure to stop editing
-            [[self window] makeFirstResponder:[self window]];
+            if (NO == [[self window] makeFirstResponder:[self window]]) {
+                [[self window] endEditingFor:nil];
+                [self setEditing:NO];
+            }
         }
         // now handle any field editor(s)
         else {
@@ -379,6 +382,8 @@
             }
             else {
                 fprintf(stderr, "%s, control does not respond to 
abortEditing\n", __func__);
+                [firstResponder abortEditing];
+                [self setEditing:NO];
             }
         }
     }

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