QmlDesigner: Fix wrong state group shown

Fix an issue were the wrong state group is shown when switching modes
e.g. Design > Edit > Design. It is caused by the model being attached
and the indices not forwarded to QML.

Task-number: QDS-8418
Change-Id: Ie9a99182b0230757a043397d9b906ba1bb15bed9
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Henning Gruendl
2022-11-24 13:08:43 +01:00
committed by Henning Gründl
parent 02c65495d1
commit 2388caa544

View File

@@ -714,6 +714,9 @@ void StatesEditorView::modelAttached(Model *model)
resetModel(); resetModel();
resetStateGroups(); resetStateGroups();
emit m_statesEditorModel->activeStateGroupChanged();
emit m_statesEditorModel->activeStateGroupIndexChanged();
} }
void StatesEditorView::modelAboutToBeDetached(Model *model) void StatesEditorView::modelAboutToBeDetached(Model *model)