Don't sendPostedEvents() twice when calling processEvents() manually
commit11e9e2146340ed150bcdf87a789dee4c0c0d6d22
authorBradley T. Hughes <bradley.hughes@nokia.com>
Mon, 16 Nov 2009 11:39:13 +0000 (16 12:39 +0100)
committerJason McDonald <jason.mcdonald@nokia.com>
Wed, 18 Nov 2009 03:34:02 +0000 (18 13:34 +1000)
tree78f56019d70014dfc74e0360d237b5cadab97f22
parent7bc60280080fa764aaf6a11164efb6467681f32d
Don't sendPostedEvents() twice when calling processEvents() manually

Commit fe0f807e1f4e7510c6d8cddd848bcbc25e358651 could cause
sendPostedEvents() to be called twice, which caused regressions in
tests/auto/qtimer. Fix this by only calling sendPostedEvents()
"manually" if we didn't see a WM_QT_SENDPOSTEDEVENTS message.

Reviewed-by: Prasanth Ullattil
(cherry picked from commit b7b567401c42343aed9abac7328472d6ffb37af0)
src/corelib/kernel/qeventdispatcher_win.cpp