Fix for sheets based on NSAlert.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59351 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Kevin Ollivier 2009-03-05 21:19:40 +00:00
parent c973763629
commit 037f9d3ba3

View File

@ -173,7 +173,9 @@ void wxMacWakeUp()
{
resultCode = returnCode;
sheetFinished = YES;
[sheet orderOut: self];
// NSAlerts don't need nor respond to orderOut
if ([sheet respondsToSelector:@selector(orderOut:)])
[sheet orderOut: self];
}
@end