Dialogs can be thrown before INPUTFILTER is constructed.

This commit is contained in:
Steve Checkoway
2006-09-25 02:14:41 +00:00
parent 56186f2bee
commit 9facfc2731
@@ -17,9 +17,12 @@ static CFOptionFlags ShowAlert( CFOptionFlags flags, const RString& sMessage, CF
CFRelease( text );
// Flush all input that's accumulated while the dialog box was up.
vector<InputEvent> dummy;
INPUTFILTER->Reset();
INPUTFILTER->GetInputEvents( dummy );
if( INPUTFILTER )
{
vector<InputEvent> dummy;
INPUTFILTER->Reset();
INPUTFILTER->GetInputEvents( dummy );
}
return result;
}