Revision: 29296
          http://sourceforge.net/p/bibdesk/svn/29296
Author:   hofman
Date:     2025-07-18 15:48:38 +0000 (Fri, 18 Jul 2025)
Log Message:
-----------
don't present errors when committing in windowWillClose:

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

Modified: trunk/bibdesk/BDSKEditor.m
===================================================================
--- trunk/bibdesk/BDSKEditor.m  2025-07-18 15:37:00 UTC (rev 29295)
+++ trunk/bibdesk/BDSKEditor.m  2025-07-18 15:48:38 UTC (rev 29296)
@@ -2896,8 +2896,7 @@
 
 - (void)windowWillClose:(NSNotification *)notification{
     // make sure we're not registered as editor because we will be invalid, 
this shouldn't be necessary but there have been reports of crashes
-    if ([[[self window] firstResponder] isKindOfClass:[NSText class]] &&
-        NO == [[self window] makeFirstResponder:[self window]])
+    if (editorFlags.isEditing && [self commitEditingAndReturnError:NULL] == NO)
         [self discardEditing];
     [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
Bibdesk-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to