mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 18:41:10 +02:00
Crash fix for web3d overlays that are not the tablet.
This commit is contained in:
parent
85500841fb
commit
9fdc044ae1
1 changed files with 3 additions and 2 deletions
|
@ -127,8 +127,9 @@ QString Web3DOverlay::pickURL() {
|
||||||
QUrl sourceUrl(_url);
|
QUrl sourceUrl(_url);
|
||||||
if (sourceUrl.scheme() == "http" || sourceUrl.scheme() == "https" ||
|
if (sourceUrl.scheme() == "http" || sourceUrl.scheme() == "https" ||
|
||||||
_url.toLower().endsWith(".htm") || _url.toLower().endsWith(".html")) {
|
_url.toLower().endsWith(".htm") || _url.toLower().endsWith(".html")) {
|
||||||
|
if (_webSurface) {
|
||||||
_webSurface->setBaseUrl(QUrl::fromLocalFile(PathUtils::resourcesPath() + "/qml/"));
|
_webSurface->setBaseUrl(QUrl::fromLocalFile(PathUtils::resourcesPath() + "/qml/"));
|
||||||
|
}
|
||||||
return "Web3DOverlay.qml";
|
return "Web3DOverlay.qml";
|
||||||
} else {
|
} else {
|
||||||
return QUrl::fromLocalFile(PathUtils::resourcesPath()).toString() + "/" + _url;
|
return QUrl::fromLocalFile(PathUtils::resourcesPath()).toString() + "/" + _url;
|
||||||
|
|
Loading…
Reference in a new issue