mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Merge pull request #14434 from sethalves/fix-throw-from-worker
catch QString exceptions that ModelCache can throw
This commit is contained in:
commit
30051f75da
1 changed files with 7 additions and 0 deletions
|
@ -243,6 +243,13 @@ void GeometryReader::run() {
|
|||
QMetaObject::invokeMethod(resource.data(), "finishedLoading",
|
||||
Q_ARG(bool, false));
|
||||
}
|
||||
} catch (QString& e) {
|
||||
qCWarning(modelnetworking) << "Exception while loading model --" << e;
|
||||
auto resource = _resource.toStrongRef();
|
||||
if (resource) {
|
||||
QMetaObject::invokeMethod(resource.data(), "finishedLoading",
|
||||
Q_ARG(bool, false));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue