summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBradley T. Hughes <bradley.hughes@nokia.com>2009-12-11 11:01:06 (GMT)
committerBradley T. Hughes <bradley.hughes@nokia.com>2009-12-11 11:01:06 (GMT)
commit38181f227d3c35a543b1df5b5440ae3bac3b6513 (patch)
tree613ad1feeeada9af3302efddda3af3c2c715cc4d
parent9364907eb92a51d054b54fe543c62df3bd203deb (diff)
downloadQt-38181f227d3c35a543b1df5b5440ae3bac3b6513.zip
Qt-38181f227d3c35a543b1df5b5440ae3bac3b6513.tar.gz
Qt-38181f227d3c35a543b1df5b5440ae3bac3b6513.tar.bz2
Make sure posted events are always sent.
Commit 9215506e6a057d8aef7415c2921214e1ba1c760d introduced one small delta that would cause a certain example to stop working. This example called update() from a paintEvent(), which now works again.
-rw-r--r--src/corelib/kernel/qeventdispatcher_win.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/kernel/qeventdispatcher_win.cpp b/src/corelib/kernel/qeventdispatcher_win.cpp
index b98d08e..115049f 100644
--- a/src/corelib/kernel/qeventdispatcher_win.cpp
+++ b/src/corelib/kernel/qeventdispatcher_win.cpp
@@ -747,7 +747,7 @@ bool QEventDispatcherWin32::processEvents(QEventLoop::ProcessEventsFlags flags)
}
if (haveMessage) {
if (d->internalHwnd == msg.hwnd && msg.message == WM_QT_SENDPOSTEDEVENTS) {
- if (seenWM_QT_SENDPOSTEDEVENTS && !(flags & QEventLoop::EventLoopExec)) {
+ if (seenWM_QT_SENDPOSTEDEVENTS) {
// when calling processEvents() "manually", we only want to send posted
// events once
needWM_QT_SENDPOSTEDEVENTS = true;