Revision: 29393
          http://sourceforge.net/p/bibdesk/svn/29393
Author:   hofman
Date:     2025-07-29 08:57:33 +0000 (Tue, 29 Jul 2025)
Log Message:
-----------
combine conditions, don't need the field editor

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

Modified: trunk/bibdesk/BDSKEditor.m
===================================================================
--- trunk/bibdesk/BDSKEditor.m  2025-07-28 22:58:42 UTC (rev 29392)
+++ trunk/bibdesk/BDSKEditor.m  2025-07-29 08:57:33 UTC (rev 29393)
@@ -525,14 +525,11 @@
 }
 
 - (void)didPresentErrorWithRecovery:(BOOL)didRecover contextInfo:(void 
*)contextInfo {
-    if (didRecover) {
-        NSTextView *textView = (NSTextView *)[citeKeyField currentEditor];
-        if (textView) {
-            // we must be committing the citeKeyField with fragile characters
-            editorFlags.allowFragileCharacters = YES;
-            didRecover = [self commitEditingAndReturnError:NULL];
-            editorFlags.allowFragileCharacters = NO;
-        }
+    if (didRecover && [citeKeyField currentEditor]) {
+        // we must be committing the citeKeyField with fragile characters
+        editorFlags.allowFragileCharacters = YES;
+        didRecover = [self commitEditingAndReturnError:NULL];
+        editorFlags.allowFragileCharacters = NO;
     }
     NSInvocation *invocation = (NSInvocation *)CFBridgingRelease(contextInfo);
     if (invocation) {

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