Dialogs can be thrown before INPUTFILTER is constructed.
This commit is contained in:
@@ -17,9 +17,12 @@ static CFOptionFlags ShowAlert( CFOptionFlags flags, const RString& sMessage, CF
|
|||||||
CFRelease( text );
|
CFRelease( text );
|
||||||
|
|
||||||
// Flush all input that's accumulated while the dialog box was up.
|
// Flush all input that's accumulated while the dialog box was up.
|
||||||
|
if( INPUTFILTER )
|
||||||
|
{
|
||||||
vector<InputEvent> dummy;
|
vector<InputEvent> dummy;
|
||||||
INPUTFILTER->Reset();
|
INPUTFILTER->Reset();
|
||||||
INPUTFILTER->GetInputEvents( dummy );
|
INPUTFILTER->GetInputEvents( dummy );
|
||||||
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user