diff --git a/tools/fm-editor/tree/FeatureTreeViewModel.cpp b/tools/fm-editor/tree/FeatureTreeViewModel.cpp index 48feccb93..aeee9e6e3 100644 --- a/tools/fm-editor/tree/FeatureTreeViewModel.cpp +++ b/tools/fm-editor/tree/FeatureTreeViewModel.cpp @@ -119,10 +119,12 @@ FeatureTreeViewModel::addFeature(vara::feature::Feature *Feature, std::string Parent) { auto *Item = getItem(std::move(Parent)); if (Item) { + emit(layoutAboutToBeChanged()); auto NewItem = FeatureTreeItem::createFeatureTreeItem(Feature); Item->addChild(NewItem.get()); auto *NewItemRaw = NewItem.get(); Items.push_back(std::move(NewItem)); + emit(layoutChanged()); return NewItemRaw; }