Revision: 29389
          http://sourceforge.net/p/bibdesk/svn/29389
Author:   hofman
Date:     2025-07-28 22:49:36 +0000 (Mon, 28 Jul 2025)
Log Message:
-----------
just allow fragile cite key characters when closing editor window

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

Modified: trunk/bibdesk/BDSKEditor.m
===================================================================
--- trunk/bibdesk/BDSKEditor.m  2025-07-28 22:38:54 UTC (rev 29388)
+++ trunk/bibdesk/BDSKEditor.m  2025-07-28 22:49:36 UTC (rev 29389)
@@ -2910,19 +2910,14 @@
 }
 
 - (void)endEditing {
-    if (editorFlags.isEditing == NO)
-        return;
-    NSError *error = nil;
-    if (NO == [self commitEditingAndReturnRecoverableError:&error])
-        return;
-    if ([error localizedRecoveryOptions]) {
+    if (editorFlags.isEditing) {
         editorFlags.allowFragileCharacters = YES;
-        BOOL didEndEditing = [self commitEditingAndReturnError:NULL];
+        BOOL didEndEditing = [self 
commitEditingAndReturnRecoverableError:NULL];
+            return;
         editorFlags.allowFragileCharacters = NO;
-        if (didEndEditing)
-            return;
+        if (didEndEditing == NO)
+            [self discardEditing];
     }
-    [self discardEditing];
 }
 
 - (void)windowWillClose:(NSNotification *)notification{

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