From a49edadde2361cc32558abe0ee4a28fd19977073 Mon Sep 17 00:00:00 2001 From: PaddleStroke Date: Mon, 19 Jan 2026 18:10:11 +0100 Subject: [PATCH] PropertyEditor: Fix tab toggling bool (#26955) --- src/Gui/propertyeditor/PropertyItemDelegate.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Gui/propertyeditor/PropertyItemDelegate.cpp b/src/Gui/propertyeditor/PropertyItemDelegate.cpp index b68c449409..5550aef034 100644 --- a/src/Gui/propertyeditor/PropertyItemDelegate.cpp +++ b/src/Gui/propertyeditor/PropertyItemDelegate.cpp @@ -202,9 +202,11 @@ bool PropertyItemDelegate::eventFilter(QObject* o, QEvent* ev) if (checkBox) { auto parentEditor = qobject_cast(this->parent()); if (parentEditor && parentEditor->activeEditor == checkBox) { - checkBox->toggle(); - // Delay valueChanged to ensure proper recomputation - QTimer::singleShot(0, this, [this]() { valueChanged(); }); + if (this->pressed) { + checkBox->toggle(); + // Delay valueChanged to ensure proper recomputation + QTimer::singleShot(0, this, [this]() { valueChanged(); }); + } } } }