From d9e7fc0ecd16968b300e7c0bd4b9aef14ebb51aa Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Fri, 8 Sep 2006 05:05:09 +0000 Subject: [PATCH] No, I wanted to both reset and flush the queue. --- stepmania/src/arch/Dialog/DialogDriver_Cocoa.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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; }