QmlDesigner: Remove call to clearComponentCache()

This is called also the first time and can have unwanted side effects.

Change-Id: I373dd748499c9f924a3263796e4cd584959f55ac
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Thomas Hartmann
2025-02-27 12:09:48 +01:00
parent 6ac1a9ba7f
commit 395a801814

View File

@@ -103,7 +103,6 @@ void InsightWidget::reloadQmlSource()
{ {
QString statesListQmlFilePath = qmlSourcesPath() + QStringLiteral("/Main.qml"); QString statesListQmlFilePath = qmlSourcesPath() + QStringLiteral("/Main.qml");
QTC_ASSERT(QFileInfo::exists(statesListQmlFilePath), return ); QTC_ASSERT(QFileInfo::exists(statesListQmlFilePath), return );
engine()->clearComponentCache();
setSource(QUrl::fromLocalFile(statesListQmlFilePath)); setSource(QUrl::fromLocalFile(statesListQmlFilePath));
if (!rootObject()) { if (!rootObject()) {