Fix crash when canceling (probably closing the dialog box or something).

This commit is contained in:
Steve Checkoway
2006-06-27 18:27:51 +00:00
parent 1eeb14cd5a
commit cc10b4f368
@@ -54,6 +54,7 @@ Dialog::Result DialogDriver_Cocoa::AbortRetryIgnore( RString sMessage, RString s
case kCFUserNotificationAlternateResponse:
return Dialog::retry;
case kCFUserNotificationOtherResponse:
case kCFUserNotificationCancelResponse:
return Dialog::abort;
default:
FAIL_M( ssprintf("Invalid response: %d.", int(result)) );
@@ -72,6 +73,7 @@ Dialog::Result DialogDriver_Cocoa::AbortRetry( RString sMessage, RString sID )
switch( result )
{
case kCFUserNotificationDefaultResponse:
case kCFUserNotificationCancelResponse:
return Dialog::abort;
case kCFUserNotificationAlternateResponse:
return Dialog::retry;