Skip to content

Commit

Permalink
Merge pull request #6126 from gadfort/display-toggle
Browse files Browse the repository at this point in the history
gui: dont check hidden children states when toggling parent checkbox
  • Loading branch information
maliberty authored Nov 9, 2024
2 parents 17c5697 + 7c07257 commit b3fd7b7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gui/src/displayControls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -872,6 +872,9 @@ void DisplayControls::toggleParent(const QStandardItem* parent,
bool all_checked = true;

for (int row = 0; row < parent->rowCount(); ++row) {
if (view_->isRowHidden(row, parent->index())) {
continue;
}
auto child = parent->child(row, column);
if (child) {
bool checked = child->checkState() == Qt::Checked;
Expand Down

0 comments on commit b3fd7b7

Please sign in to comment.