summaryrefslogtreecommitdiffstats
path: root/mobile-widgets
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-02-21 17:09:17 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-03-10 09:25:57 -0700
commit3bcc5621502921fe0103a66c71d733f80e880aee (patch)
tree0c7d841d0dbd275e702e9a938f3cbd2e19eb5a40 /mobile-widgets
parentc8b55ddb762dfab57b63cc90789c5d47007a83a5 (diff)
downloadsubsurface-3bcc5621502921fe0103a66c71d733f80e880aee.tar.gz
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 <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets')
-rw-r--r--mobile-widgets/qmlmanager.cpp6
1 files changed, 3 insertions, 3 deletions
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