Gui: Exclude base type in Add Property dialog

This commit is contained in:
Pieter Hijma
2025-10-03 16:29:34 +02:00
committed by Chris Hennes
parent 5b991a2da3
commit 0bd3fad4bd

View File

@@ -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