Fix crash when canceling (probably closing the dialog box or something).
This commit is contained in:
@@ -54,6 +54,7 @@ Dialog::Result DialogDriver_Cocoa::AbortRetryIgnore( RString sMessage, RString s
|
|||||||
case kCFUserNotificationAlternateResponse:
|
case kCFUserNotificationAlternateResponse:
|
||||||
return Dialog::retry;
|
return Dialog::retry;
|
||||||
case kCFUserNotificationOtherResponse:
|
case kCFUserNotificationOtherResponse:
|
||||||
|
case kCFUserNotificationCancelResponse:
|
||||||
return Dialog::abort;
|
return Dialog::abort;
|
||||||
default:
|
default:
|
||||||
FAIL_M( ssprintf("Invalid response: %d.", int(result)) );
|
FAIL_M( ssprintf("Invalid response: %d.", int(result)) );
|
||||||
@@ -72,6 +73,7 @@ Dialog::Result DialogDriver_Cocoa::AbortRetry( RString sMessage, RString sID )
|
|||||||
switch( result )
|
switch( result )
|
||||||
{
|
{
|
||||||
case kCFUserNotificationDefaultResponse:
|
case kCFUserNotificationDefaultResponse:
|
||||||
|
case kCFUserNotificationCancelResponse:
|
||||||
return Dialog::abort;
|
return Dialog::abort;
|
||||||
case kCFUserNotificationAlternateResponse:
|
case kCFUserNotificationAlternateResponse:
|
||||||
return Dialog::retry;
|
return Dialog::retry;
|
||||||
|
|||||||
Reference in New Issue
Block a user