QmlDesigner: Soften asserts on invalid URLs

Change-Id: I45ff2b98c45c1c39c1fbd28e89ddc15bde1adb93
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Burak Hancerli
2023-07-18 17:41:08 +02:00
parent 90b0fd2869
commit 98c32d2043

View File

@@ -1981,7 +1981,7 @@ SourceId Model::fileUrlSourceId() const
*/ */
void Model::setFileUrl(const QUrl &url) void Model::setFileUrl(const QUrl &url)
{ {
Q_ASSERT(url.isValid() && url.isLocalFile()); QTC_ASSERT(url.isValid() && url.isLocalFile(), qDebug() << "url:" << url; return);
Internal::WriteLocker locker(d.get()); Internal::WriteLocker locker(d.get());
d->setFileUrl(url); d->setFileUrl(url);
} }