QmlDesigner: Close the popup when model is detached

This happens when leaving the edit mode or the document
is changed.

Task-number: QDS-10707
Change-Id: I4b4e2511674d38c2d733db29070c01252c27c386
Reviewed-by: Aleksei German <aleksei.german@qt.io>
This commit is contained in:
Thomas Hartmann
2023-09-19 18:17:01 +02:00
parent ffe3670d90
commit f2343b417e
4 changed files with 10 additions and 3 deletions

View File

@@ -169,6 +169,7 @@ void ConnectionView::modelAboutToBeDetached(Model *model)
bindingModel()->reset();
dynamicPropertiesModel()->reset();
connectionModel()->resetModel();
connectionModel()->modelAboutToBeDetached();
}
void ConnectionView::nodeCreated(const ModelNode & /*createdNode*/)