Skip to content

Commit

Permalink
dont display data fro empty Feature Tree Item
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Friedel committed Nov 21, 2023
1 parent bfc46bc commit 8a2a93d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/fm-editor/tree/FeatureTreeItem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ std::vector<FeatureTreeItem *> FeatureTreeItem::getChildrenRecursive() {
}

QVariant FeatureTreeItemFeature::data(int Column) const {
if (Item == nullptr) {
return {};
}
switch (Column) {
case 0:
return QString::fromStdString(Item->getName().str());
Expand Down

0 comments on commit 8a2a93d

Please sign in to comment.