Gui: Exclude base type in Add Property dialog
This commit is contained in:
committed by
Chris Hennes
parent
5b991a2da3
commit
0bd3fad4bd
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user