Revision: 12268
          http://bibdesk.svn.sourceforge.net/bibdesk/?rev=12268&view=rev
Author:   amaxwell
Date:     2008-01-04 22:37:14 -0800 (Fri, 04 Jan 2008)

Log Message:
-----------
Check for a nil key as well.  This should still fail, but hopefully we get
something more descriptive than a setObject:forKey: nil key exception.

Modified Paths:
--------------
    trunk/bibdesk_vendorsrc/OmniGroup/OmniAppKit/OAApplication.m

Modified: trunk/bibdesk_vendorsrc/OmniGroup/OmniAppKit/OAApplication.m
===================================================================
--- trunk/bibdesk_vendorsrc/OmniGroup/OmniAppKit/OAApplication.m        
2008-01-05 06:27:25 UTC (rev 12267)
+++ trunk/bibdesk_vendorsrc/OmniGroup/OmniAppKit/OAApplication.m        
2008-01-05 06:37:14 UTC (rev 12268)
@@ -133,7 +133,7 @@
         // This window already has a sheet, we need to wait for it to finish
         [sheetQueue addObject:[OASheetRequest sheetRequestWithSheet:sheet 
modalForWindow:docWindow modalDelegate:modalDelegate 
didEndSelector:didEndSelector contextInfo:contextInfo]];
     } else {
-        if (docWindow != nil)
+        if (docWindow != nil && nil != sheet)
             [windowsForSheets setObject:docWindow forKey:sheet];
         [super beginSheet:sheet modalForWindow:docWindow 
modalDelegate:modalDelegate didEndSelector:didEndSelector 
contextInfo:contextInfo];
     }


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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to