From a8118e83ff880f9dd4fc95cb964f9211b1c3b95b Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Mon, 23 Jan 2017 13:54:43 -0800 Subject: [PATCH] cleanup debug for safe web entity URLs --- libraries/entities-renderer/src/RenderableWebEntityItem.cpp | 2 ++ libraries/entities/src/WebEntityItem.cpp | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/entities-renderer/src/RenderableWebEntityItem.cpp b/libraries/entities-renderer/src/RenderableWebEntityItem.cpp index 7f68738bd5..e4d4b222fe 100644 --- a/libraries/entities-renderer/src/RenderableWebEntityItem.cpp +++ b/libraries/entities-renderer/src/RenderableWebEntityItem.cpp @@ -251,6 +251,8 @@ void RenderableWebEntityItem::setSourceUrl(const QString& value) { WebEntityItem::setSourceUrl(value); if (_sourceUrl != valueBeforeSuperclassSet && _webSurface) { + qCDebug(entities) << "Changing web entity source URL to " << _sourceUrl; + AbstractViewStateInterface::instance()->postLambdaEvent([this] { _webSurface->getRootItem()->setProperty("url", _sourceUrl); }); diff --git a/libraries/entities/src/WebEntityItem.cpp b/libraries/entities/src/WebEntityItem.cpp index 38ececefa4..5944b5ca3c 100644 --- a/libraries/entities/src/WebEntityItem.cpp +++ b/libraries/entities/src/WebEntityItem.cpp @@ -129,7 +129,6 @@ void WebEntityItem::setSourceUrl(const QString& value) { if (newURL.isValid()) { _sourceUrl = newURL.toDisplayString(); - qCDebug(entities) << "Changed web entity source URL to " << _sourceUrl; } else { qCDebug(entities) << "Clearing web entity source URL since" << value << "cannot be parsed to a valid URL."; }