mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +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();
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue