Skip to content

Commit

Permalink
update tree view when adding features
Browse files Browse the repository at this point in the history
  • Loading branch information
Sinerum committed Oct 30, 2023
1 parent 963ce63 commit 4e510e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/fm-editor/tree/FeatureTreeViewModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 4e510e7

Please sign in to comment.