From 0bd3fad4bd8d5d30a777dafac70264eb8d91dcaf Mon Sep 17 00:00:00 2001 From: Pieter Hijma Date: Fri, 3 Oct 2025 16:29:34 +0200 Subject: [PATCH] Gui: Exclude base type in Add Property dialog --- src/Gui/Dialogs/DlgAddProperty.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Gui/Dialogs/DlgAddProperty.cpp b/src/Gui/Dialogs/DlgAddProperty.cpp index 34dd2f4e34..0d3255efd3 100644 --- a/src/Gui/Dialogs/DlgAddProperty.cpp +++ b/src/Gui/Dialogs/DlgAddProperty.cpp @@ -536,7 +536,8 @@ bool DlgAddProperty::isGroupValid() bool DlgAddProperty::isTypeValid() { std::string type = ui->comboBoxType->currentText().toStdString(); - return Base::Type::fromName(type.c_str()).isDerivedFrom(App::Property::getClassTypeId()); + return Base::Type::fromName(type.c_str()).isDerivedFrom(App::Property::getClassTypeId()) && + type != "App::Property"; } bool DlgAddProperty::isDocument() const