Revision: 15184
          http://bibdesk.svn.sourceforge.net/bibdesk/?rev=15184&view=rev
Author:   hofman
Date:     2009-04-25 14:30:12 +0000 (Sat, 25 Apr 2009)

Log Message:
-----------
check whether we've got the right kind of document for updating the columns menu

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

Modified: trunk/bibdesk/BDSKAppController.m
===================================================================
--- trunk/bibdesk/BDSKAppController.m   2009-04-25 11:16:31 UTC (rev 15183)
+++ trunk/bibdesk/BDSKAppController.m   2009-04-25 14:30:12 UTC (rev 15184)
@@ -644,7 +644,8 @@
             [menu removeItemAtIndex:0];
         
         BibDocument *document = (BibDocument *)[[NSDocumentController 
sharedDocumentController] currentDocument];
-        [menu addItemsFromMenu:[document columnsMenu]];
+        if ([document respondsToSelector:@selector(columnsMenu)])
+            [menu addItemsFromMenu:[document columnsMenu]];
         
     } else if ([menu isEqual:groupFieldMenu]) {
         


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

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to