diff options
author | Armin Berres <armin.berres@basyskom.de> | 2010-06-16 14:55:38 +0200 |
---|---|---|
committer | Jörgen Scheibengruber <jorgen.scheibengruber@nokia.com> | 2010-06-16 16:17:17 +0300 |
commit | 88c05b309dadec4092bdcadb020793dbf728f2ec (patch) | |
tree | 10c72b7e0b03d4dd887286034ffdb314b376f8a9 | |
parent | 1325f78a678e92a228406907991fb8aa0e3d3010 (diff) |
Fixes: NB#174469 - widgetsgallery -quitimmediately stuck
RevBy: TrustMe
Changes:
If we do not manually process events we always have one pending event.
With Qt 4.6 this worked, seems as if there are some changes with 4.7.
-rw-r--r-- | benchmarks/performancebenchmark/emptymainloophelper.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/benchmarks/performancebenchmark/emptymainloophelper.cpp b/benchmarks/performancebenchmark/emptymainloophelper.cpp index 8c5f4db0..ba08e770 100644 --- a/benchmarks/performancebenchmark/emptymainloophelper.cpp +++ b/benchmarks/performancebenchmark/emptymainloophelper.cpp @@ -48,6 +48,7 @@ void EmptyMainLoopHelper::triggerTermination(TerminationType type) void EmptyMainLoopHelper::terminateOnEmptyMainLoop() { + qApp->processEvents(); if (qApp->hasPendingEvents() || MTheme::hasPendingRequests()) { QTimer::singleShot(0, this, SLOT(terminateOnEmptyMainLoop())); } else { |