Revision: 18436
          http://bibdesk.svn.sourceforge.net/bibdesk/?rev=18436&view=rev
Author:   hofman
Date:     2012-01-20 13:12:29 +0000 (Fri, 20 Jan 2012)
Log Message:
-----------
don't pass nil url to text import

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

Modified: trunk/bibdesk/BibDocument_Actions.m
===================================================================
--- trunk/bibdesk/BibDocument_Actions.m 2012-01-20 11:59:37 UTC (rev 18435)
+++ trunk/bibdesk/BibDocument_Actions.m 2012-01-20 13:12:29 UTC (rev 18436)
@@ -1488,8 +1488,14 @@
     if (returnCode == NSOKButton) {
         [[urlSheetController window] orderOut:nil];
         
+        NSURL *url = [urlSheetController URL];
+        if (url == nil) {
+            NSBeep();
+            return;
+        }
+        
         BDSKTextImportController *tic = [[(BDSKTextImportController 
*)[BDSKTextImportController alloc] initWithDocument:self] autorelease];
-        [tic beginSheetForURL:[urlSheetController URL] 
modalForWindow:documentWindow];
+        [tic beginSheetForURL:url modalForWindow:documentWindow];
     }
 }
 

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


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to