From 5d4587cfb3c2b24d4b97cd06c62af3c67732fd9d Mon Sep 17 00:00:00 2001 From: Pieter Hijma Date: Wed, 20 Nov 2024 00:08:54 +0100 Subject: [PATCH] Gui: Fix VarSet dialog 2 digit problem --- src/Gui/DlgAddPropertyVarSet.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Gui/DlgAddPropertyVarSet.cpp b/src/Gui/DlgAddPropertyVarSet.cpp index 47564c21b6..5aef97f63a 100644 --- a/src/Gui/DlgAddPropertyVarSet.cpp +++ b/src/Gui/DlgAddPropertyVarSet.cpp @@ -238,9 +238,7 @@ void DlgAddPropertyVarSet::addEditor(PropertyEditor::PropertyItem* propertyItem, editor.reset(propertyItem->createEditor(this, [this]() { this->valueChanged(); })); - if (type == "App::PropertyFont") { - propertyItem->setEditorData(editor.get(), QVariant()); - } + propertyItem->setEditorData(editor.get(), QVariant()); editor->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred); editor->setObjectName(QString::fromUtf8("editor")); auto formLayout = qobject_cast(layout());