diff options
author | con <qtc-committer@nokia.com> | 2011-02-16 09:27:08 (GMT) |
---|---|---|
committer | Jørgen Lind <jorgen.lind@nokia.com> | 2011-03-04 09:09:13 (GMT) |
commit | 0be49f7c6719d3cfafb7e73a33dfd3f86aa8fb7c (patch) | |
tree | 82f8ee2340cd69eefd19a9101846cdefe3a08090 /src/gui | |
parent | 8dbe38632307d6cbe07f95db929e42ec01304324 (diff) | |
download | Qt-0be49f7c6719d3cfafb7e73a33dfd3f86aa8fb7c.zip Qt-0be49f7c6719d3cfafb7e73a33dfd3f86aa8fb7c.tar.gz Qt-0be49f7c6719d3cfafb7e73a33dfd3f86aa8fb7c.tar.bz2 |
Do not explicitly process events before running event loop integration.
Processing posted Qt events before the event loop integration is started
may lead to the process being killed for taking too long time before the
native event loop is running.
Since event loop integrations are required to install a timer that does
processEvents anyhow, the Qt events will be processed even without doing
it explicitly in advance.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/kernel/qeventdispatcher_qpa.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/gui/kernel/qeventdispatcher_qpa.cpp b/src/gui/kernel/qeventdispatcher_qpa.cpp index 519d2a6..f75cc0d 100644 --- a/src/gui/kernel/qeventdispatcher_qpa.cpp +++ b/src/gui/kernel/qeventdispatcher_qpa.cpp @@ -172,7 +172,6 @@ public: { if (qApp && (qApp->thread() == QThread::currentThread())) { m_isEventLoopIntegrationRunning = true; - QCoreApplication::processEvents(QEventLoop::WaitForMoreEvents); eventLoopIntegration->startEventLoop(); } } |