mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 00:33:24 +00:00
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>
This commit is contained in:
parent
c8b55ddb76
commit
3bcc562150
1 changed files with 3 additions and 3 deletions
|
@ -103,9 +103,9 @@ extern "C" int gitProgressCB(const char *text)
|
||||||
qint64 elapsed = timer.elapsed();
|
qint64 elapsed = timer.elapsed();
|
||||||
self->appendTextToLog(text);
|
self->appendTextToLog(text);
|
||||||
self->setNotificationText(text);
|
self->setNotificationText(text);
|
||||||
if (elapsed - lastTime > 50) { // 20 Hz refresh
|
//if (elapsed - lastTime > 50) { // 20 Hz refresh
|
||||||
qApp->processEvents(QEventLoop::ExcludeUserInputEvents);
|
// qApp->processEvents(QEventLoop::ExcludeUserInputEvents);
|
||||||
}
|
//}
|
||||||
lastTime = elapsed;
|
lastTime = elapsed;
|
||||||
}
|
}
|
||||||
// return 0 so that we don't end the download
|
// return 0 so that we don't end the download
|
||||||
|
|
Loading…
Add table
Reference in a new issue