Revision: 29370
          http://sourceforge.net/p/bibdesk/svn/29370
Author:   hofman
Date:     2025-07-26 16:03:04 +0000 (Sat, 26 Jul 2025)
Log Message:
-----------
correctly return NO

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

Modified: trunk/bibdesk/BDSKEditor.m
===================================================================
--- trunk/bibdesk/BDSKEditor.m  2025-07-26 15:59:40 UTC (rev 29369)
+++ trunk/bibdesk/BDSKEditor.m  2025-07-26 16:03:04 UTC (rev 29370)
@@ -2263,13 +2263,14 @@
 
 - (BOOL)textShouldEndEditing:(NSText *)aTextObject {
     BDSKASSERT(aTextObject == currentEditedView);
-    BOOL rv = YES;
     if (aTextObject == currentEditedView) {
         NSError *error = [self errorForTextShouldEndEditing:aTextObject];
-        if (error)
+        if (error) {
             [self presentError:error modalForWindow:[self window] delegate:nil 
didPresentSelector:NULL contextInfo:NULL];
+            return NO;
+        }
     }
-    return rv;
+    return YES;
 }
 
 // sent by the textViews

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