summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOliver Wolff <oliver.wolff@digia.com>2014-02-14 16:01:34 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-15 10:50:08 +0100
commit315b6a6a849cdd6a347d80d4a32d873595de556f (patch)
treee1891a17e95b8238db7f85cbcbc08a7d8488bb90 /src
parent760a771fce3758fe34b1f3ce8a22f283bb24b326 (diff)
WinRT: Exit process event loop if WaitForMoreEvents is not set
Change-Id: Ic74a75a56ba3f014b108e96d7a79a8623e6fa1d1 Reviewed-by: Andrew Knight <andrew.knight@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/corelib/kernel/qeventdispatcher_winrt.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/kernel/qeventdispatcher_winrt.cpp b/src/corelib/kernel/qeventdispatcher_winrt.cpp
index 8b2dd2ef6d..56f4ac40de 100644
--- a/src/corelib/kernel/qeventdispatcher_winrt.cpp
+++ b/src/corelib/kernel/qeventdispatcher_winrt.cpp
@@ -160,6 +160,8 @@ bool QEventDispatcherWinRT::processEvents(QEventLoop::ProcessEventsFlags flags)
emit aboutToBlock();
WaitForSingleObjectEx(GetCurrentThread(), 1, FALSE);
emit awake();
+ } else {
+ break;
}
}
d->interrupt = false;