Fixed: CPAlert sheet crash.

Without this fix, CPAlert windows would not finish closing before sending the `alertDidEnd:returnCode:` delegate message. This would lead to a crash if the delegate method tried to open a new sheet.

This fix makes sure to fully order out the alert sheet before sending the delegate message.
This commit is contained in:
Alexander Ljungberg
2012-12-18 00:19:04 +00:00
parent a202cfbbe9
commit cea120945c
+1 -1
View File
@@ -633,8 +633,8 @@ CPCriticalAlertStyle = 2;
{
if ([_window isSheet])
{
[CPApp endSheet:_window returnCode:[aSender tag]];
[_window orderOut:nil];
[CPApp endSheet:_window returnCode:[aSender tag]];
}
else
{