Skip to content

Commit

Permalink
Fix bug with expanding tree if there are no children (displaying simple
Browse files Browse the repository at this point in the history
variable types.
  • Loading branch information
epasveer committed Nov 24, 2024
1 parent 72ad448 commit 3b9953c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/SeerStructVisualizerWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,10 @@ void SeerStructVisualizerWidget::handleText (const QString& text) {
// Populate the tree.
handleItemCreate(topItem, value_text);

// For now, always expand everything.
variableTreeWidget->expandAll();
// Expand everything if there are children.
if (topItem->childCount() > 0) {
variableTreeWidget->expandAll();
}
}


Expand Down

0 comments on commit 3b9953c

Please sign in to comment.