mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 18:50:00 +02:00
Merge pull request #9480 from birarda/bug/web-entity-safe-url
cleanup debug for safe web entity URLs
This commit is contained in:
commit
479aa93ab2
2 changed files with 2 additions and 1 deletions
|
@ -251,6 +251,8 @@ void RenderableWebEntityItem::setSourceUrl(const QString& value) {
|
||||||
WebEntityItem::setSourceUrl(value);
|
WebEntityItem::setSourceUrl(value);
|
||||||
|
|
||||||
if (_sourceUrl != valueBeforeSuperclassSet && _webSurface) {
|
if (_sourceUrl != valueBeforeSuperclassSet && _webSurface) {
|
||||||
|
qCDebug(entities) << "Changing web entity source URL to " << _sourceUrl;
|
||||||
|
|
||||||
AbstractViewStateInterface::instance()->postLambdaEvent([this] {
|
AbstractViewStateInterface::instance()->postLambdaEvent([this] {
|
||||||
_webSurface->getRootItem()->setProperty("url", _sourceUrl);
|
_webSurface->getRootItem()->setProperty("url", _sourceUrl);
|
||||||
});
|
});
|
||||||
|
|
|
@ -129,7 +129,6 @@ void WebEntityItem::setSourceUrl(const QString& value) {
|
||||||
|
|
||||||
if (newURL.isValid()) {
|
if (newURL.isValid()) {
|
||||||
_sourceUrl = newURL.toDisplayString();
|
_sourceUrl = newURL.toDisplayString();
|
||||||
qCDebug(entities) << "Changed web entity source URL to " << _sourceUrl;
|
|
||||||
} else {
|
} else {
|
||||||
qCDebug(entities) << "Clearing web entity source URL since" << value << "cannot be parsed to a valid URL.";
|
qCDebug(entities) << "Clearing web entity source URL since" << value << "cannot be parsed to a valid URL.";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue