Revision: 29297
          http://sourceforge.net/p/bibdesk/svn/29297
Author:   hofman
Date:     2025-07-18 15:53:04 +0000 (Fri, 18 Jul 2025)
Log Message:
-----------
don't present errors when committing in when removing document

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

Modified: trunk/bibdesk/BDSKEditor.m
===================================================================
--- trunk/bibdesk/BDSKEditor.m  2025-07-18 15:48:38 UTC (rev 29296)
+++ trunk/bibdesk/BDSKEditor.m  2025-07-18 15:53:04 UTC (rev 29297)
@@ -2928,8 +2928,7 @@
 - (void)setDocument:(NSDocument *)document {
     // in case the document is reset before windowWillClose: is called, I 
think this can happen on Tiger
     if ([self document] && document == nil && editorFlags.isEditing) {
-        if ([[[self window] firstResponder] isKindOfClass:[NSText class]] &&
-            NO == [[self window] makeFirstResponder:[self window]])
+        if ([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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to