forked from qt-creator/qt-creator
QmlDesigner: Soften asserts on invalid URLs
Change-Id: I45ff2b98c45c1c39c1fbd28e89ddc15bde1adb93 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user