Skip to content

Commit

Permalink
Merge pull request #270 from epasveer/269-basic-struct-visualizer-seg…
Browse files Browse the repository at this point in the history
…faults-with-non-struct-variables

Fix bug with expanding tree if there are no children (displaying simple variable types)
  • Loading branch information
epasveer authored Nov 24, 2024
2 parents 72ad448 + 3b9953c commit 508ef1a
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 508ef1a

Please sign in to comment.