Revision: 17951
          http://bibdesk.svn.sourceforge.net/bibdesk/?rev=17951&view=rev
Author:   hofman
Date:     2011-06-09 17:06:32 +0000 (Thu, 09 Jun 2011)

Log Message:
-----------
display document for cache file only when we are asked to

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

Modified: trunk/bibdesk/BDSKDocumentController.m
===================================================================
--- trunk/bibdesk/BDSKDocumentController.m      2011-06-09 06:34:41 UTC (rev 
17950)
+++ trunk/bibdesk/BDSKDocumentController.m      2011-06-09 17:06:32 UTC (rev 
17951)
@@ -271,14 +271,14 @@
         
         // use a local variable in case it wasn't passed in, so we can always 
log this failure
         NSError *error;
-        document = [super openDocumentWithContentsOfURL:fileURL display:YES 
error:&error];
+        document = [super openDocumentWithContentsOfURL:fileURL 
display:displayDocument error:&error];
         
         if (document == nil) {
             NSLog(@"document at URL %@ failed to open for reason: %@", 
fileURL, [error localizedFailureReason]);
             // assign to the outError or we'll crash...
             if (outError) *outError = error;
-        } else if(![document selectItemForPartialItem:dictionary]) {
-                NSBeep();
+        } else if(displayDocument && NO == [document 
selectItemForPartialItem:dictionary]) {
+            NSBeep();
         }
         
     } else if ([theUTI isEqualToUTI:@"net.sourceforge.bibdesk.bdsksearch"]) {


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

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to