QmlDesigner: Notify other views of nodeSource triggered puppet reset

Use resetPuppet() instead of delayedRestartProcess() to properly
notify other views of the impending reset.

Fixes: QDS-5222
Change-Id: I46dc0dfc9f0b675bd2a0fc07c6b7d9cde4d1e48a
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Miikka Heikkinen
2021-10-05 17:01:43 +03:00
parent 1e765e5963
commit 2a96c396f9

View File

@@ -644,7 +644,7 @@ void NodeInstanceView::nodeSourceChanged(const ModelNode &node, const QString &
m_nodeInstanceServer->changeNodeSource(changeNodeSourceCommand);
// Puppet doesn't deal with node source changes properly, so just reset the puppet for now
delayedRestartProcess(); // TODO: Remove this once the issue is properly fixed (QDS-4955)
resetPuppet(); // TODO: Remove this once the issue is properly fixed (QDS-4955)
}
}