diff --git a/src/Gui/Tree.cpp b/src/Gui/Tree.cpp index 655fd41dc6..5db99aa637 100644 --- a/src/Gui/Tree.cpp +++ b/src/Gui/Tree.cpp @@ -1750,6 +1750,10 @@ void TreeWidget::mousePressEvent(QMouseEvent* event) visible = obj->Visibility.getValue(); obj->Visibility.setValue(!visible); } + + // to prevent selection of the item via QTreeWidget::mousePressEvent + event->accept(); + return; } } }