From 98c32d20438c192dbf4fc4d1d38ebe2b469fa433 Mon Sep 17 00:00:00 2001 From: Burak Hancerli Date: Tue, 18 Jul 2023 17:41:08 +0200 Subject: [PATCH] QmlDesigner: Soften asserts on invalid URLs Change-Id: I45ff2b98c45c1c39c1fbd28e89ddc15bde1adb93 Reviewed-by: Thomas Hartmann --- src/plugins/qmldesigner/designercore/model/model.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/qmldesigner/designercore/model/model.cpp b/src/plugins/qmldesigner/designercore/model/model.cpp index c8ffeb43b12..653ffea077a 100644 --- a/src/plugins/qmldesigner/designercore/model/model.cpp +++ b/src/plugins/qmldesigner/designercore/model/model.cpp @@ -1981,7 +1981,7 @@ SourceId Model::fileUrlSourceId() const */ 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()); d->setFileUrl(url); }