diff --git a/stepmania/src/arch/Dialog/DialogDriver_Cocoa.cpp b/stepmania/src/arch/Dialog/DialogDriver_Cocoa.cpp index ccd6c0f839..a352d239ed 100644 --- a/stepmania/src/arch/Dialog/DialogDriver_Cocoa.cpp +++ b/stepmania/src/arch/Dialog/DialogDriver_Cocoa.cpp @@ -14,9 +14,13 @@ static CFOptionFlags ShowAlert( CFOptionFlags flags, const RString& sMessage, CF CFUserNotificationDisplayAlert( 0.0, flags, NULL, NULL, NULL, CFSTR(PRODUCT_FAMILY), text, OK, alt, other, &result ); - // Flush all input that's accumulated while the dialog box was up. - INPUTFILTER->Reset(); CFRelease( text ); + + // Flush all input that's accumulated while the dialog box was up. + vector dummy; + INPUTFILTER->Reset(); + INPUTFILTER->GetInputEvents( dummy ); + return result; }