Cocoa Port: Fixes the use of macOS GUI sheets in Lion and Mountain Lion. (Regression from commit e9b3998f.)
This commit is contained in:
parent
e9b3998fe8
commit
8f20237c04
|
@ -81,7 +81,7 @@
|
|||
}
|
||||
|
||||
#if defined(MAC_OS_X_VERSION_10_9) && (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_9)
|
||||
if ([[sheet sheetParent] respondsToSelector:@selector(endSheet:returnCode:)])
|
||||
if ([sheet respondsToSelector:@selector(sheetParent)] && [[sheet sheetParent] respondsToSelector:@selector(endSheet:returnCode:)])
|
||||
{
|
||||
[[sheet sheetParent] endSheet:sheet returnCode:code];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue