QmlDesigner: Do not clear component cache

We share the engine now with other views.

Change-Id: Icfb1b5bc11e3f2c05f7813ef487348478352f387
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
This commit is contained in:
Thomas Hartmann
2023-03-02 13:51:42 +01:00
parent b2ba31f996
commit 6e9c9e584d

View File

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