Revision: 29410
          http://sourceforge.net/p/bibdesk/svn/29410
Author:   hofman
Date:     2025-08-01 09:13:34 +0000 (Fri, 01 Aug 2025)
Log Message:
-----------
combine conditions

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

Modified: trunk/bibdesk/BibDocument.m
===================================================================
--- trunk/bibdesk/BibDocument.m 2025-07-31 14:28:21 UTC (rev 29409)
+++ trunk/bibdesk/BibDocument.m 2025-08-01 09:13:34 UTC (rev 29410)
@@ -2146,19 +2146,17 @@
             if (type != BDSKStringTypeUnknown) {
                 contentArray = [BDSKStringParser itemsFromString:contentString 
ofType:type owner:self error:&parseError];
                 
-                if (parseError) {
-                    if([parseError 
isLocalErrorWithCode:kBDSKBibTeXParserFailed]) {
-                        if (verbose == NO) {
+                if([parseError isLocalErrorWithCode:kBDSKBibTeXParserFailed]) {
+                    if (verbose == NO) {
+                        contentArray = nil;
+                    } else {
+                        if ([self presentError:parseError] == NO)
                             contentArray = nil;
-                        } else {
-                            if ([self presentError:parseError] == NO)
-                                contentArray = nil;
-                            parseError = nil;
-                        }
-                    } else if (verbose) {
-                        [self presentError:parseError];
                         parseError = nil;
                     }
+                } else if (parseError && verbose) {
+                    [self presentError:parseError];
+                    parseError = nil;
                 }
             }
         }

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