From 3bcc5621502921fe0103a66c71d733f80e880aee Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 21 Feb 2020 17:09:17 -0800 Subject: mobile UI: don't call into the event loop While this has worked fine for a long time, it now suddenly seems to trigger crashes. So let's not do that (there are a number of discussions online that talk about how this could indeed lead to BadThings(tm) happening. Signed-off-by: Dirk Hohndel --- mobile-widgets/qmlmanager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mobile-widgets') diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index 81990efe8..a55bdb7e2 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -103,9 +103,9 @@ extern "C" int gitProgressCB(const char *text) qint64 elapsed = timer.elapsed(); self->appendTextToLog(text); self->setNotificationText(text); - if (elapsed - lastTime > 50) { // 20 Hz refresh - qApp->processEvents(QEventLoop::ExcludeUserInputEvents); - } + //if (elapsed - lastTime > 50) { // 20 Hz refresh + // qApp->processEvents(QEventLoop::ExcludeUserInputEvents); + //} lastTime = elapsed; } // return 0 so that we don't end the download -- cgit v1.2.3-70-g09d2