Revision: 18008
          http://bibdesk.svn.sourceforge.net/bibdesk/?rev=18008&view=rev
Author:   hofman
Date:     2011-07-12 11:34:14 +0000 (Tue, 12 Jul 2011)

Log Message:
-----------
suppress error reporting in open location when asked for

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

Modified: trunk/bibdesk/BDSKAppController.m
===================================================================
--- trunk/bibdesk/BDSKAppController.m   2011-07-12 06:35:08 UTC (rev 18007)
+++ trunk/bibdesk/BDSKAppController.m   2011-07-12 11:34:14 UTC (rev 18008)
@@ -753,7 +753,9 @@
     NSURL *theURL = nil;
     BibDocument *document = nil;
     NSError *error = nil;
-    
+    NSAppleEventDescriptor *errr = [event descriptorForKeyword:'errr'];
+    BOOL errorReporting = errr ? [errr booleanValue] : YES;
+
     if (theURLString) {
         if ([theURLString hasPrefix:@"<"] && [theURLString hasSuffix:@">"])
             theURLString = [theURLString substringWithRange:NSMakeRange(0, 
[theURLString length] - 2)];
@@ -797,7 +799,7 @@
         
     }
     
-    if (document == nil && error)
+    if (document == nil && error && errorReporting)
         [NSApp presentError:error];
 }
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to