mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 17:58:43 +02:00
catch QString exceptions that ModelCache can throw
This commit is contained in:
parent
b72f462028
commit
cd177a4457
1 changed files with 7 additions and 0 deletions
|
@ -243,6 +243,13 @@ void GeometryReader::run() {
|
||||||
QMetaObject::invokeMethod(resource.data(), "finishedLoading",
|
QMetaObject::invokeMethod(resource.data(), "finishedLoading",
|
||||||
Q_ARG(bool, false));
|
Q_ARG(bool, false));
|
||||||
}
|
}
|
||||||
|
} catch (QString& e) {
|
||||||
|
qCWarning(modelnetworking) << "Exception while loading" << _url << "--" << e;
|
||||||
|
auto resource = _resource.toStrongRef();
|
||||||
|
if (resource) {
|
||||||
|
QMetaObject::invokeMethod(resource.data(), "finishedLoading",
|
||||||
|
Q_ARG(bool, false));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue