Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug with expanding tree if there are no children (displaying simple variable types) #270

Merged

Conversation

epasveer
Copy link
Owner

For simple variable types (ints, floats, etc.) there were no sub children in the tree widget view. The 'expandAll' call would fail and result in a segfault (Qt bug?).

The fix is to only call 'expandAll' if there are sub children, as in the case of structures.

@epasveer epasveer self-assigned this Nov 24, 2024
@epasveer epasveer linked an issue Nov 24, 2024 that may be closed by this pull request
@epasveer epasveer merged commit 508ef1a into main Nov 24, 2024
2 of 4 checks passed
@epasveer epasveer deleted the 269-basic-struct-visualizer-segfaults-with-non-struct-variables branch November 24, 2024 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Basic Struct visualizer segfaults with non struct variables
1 participant