Skip to content

Commit

Permalink
Gui: fix tree view check box selection
Browse files Browse the repository at this point in the history
  • Loading branch information
realthunder committed Feb 12, 2021
1 parent 0af853d commit 67b3228
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Gui/Tree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4348,10 +4348,8 @@ void TreeWidget::onItemChanged(QTreeWidgetItem *item, int column) {
if (column == 0 && isSelectionCheckBoxesEnabled() && item->type() == ObjectType) {
bool selected = item->isSelected();
bool checked = item->checkState(0) == Qt::Checked;
if (checked != selected) {
QSignalBlocker blocker(this);
if (checked != selected)
item->setSelected(checked);
}
}
}

Expand Down

0 comments on commit 67b3228

Please # to comment.