PartDesign/TaskDressUpParameters: disable edit of dressup features with broken supports

Also remove unused headers and fix spacing.

A final fixup for issues addressed in:
cb05b01 PartDesign/TaskDressUpParameters: fix a crash when editing a broken object
This commit is contained in:
Alexander Golubev
2015-07-26 13:05:42 +03:00
committed by Stefan Tröger
parent 1876c76f3c
commit e28aaf4592
3 changed files with 33 additions and 10 deletions

View File

@@ -175,7 +175,7 @@ Part::Feature* TaskDressUpParameters::getBase(void) const
// Unlikely but this may throw an exception in case we are started to edit an object which base feature
// was deleted. This exception will be likely unhandled inside the dialog and pass upper, But an error
// message inside the report view is better than a SEGFAULT.
// TODO: generally this situation should be prevented in ViewProviderDressUp
// Generally this situation should be prevented in ViewProviderDressUp::setEdit()
return pcDressUp->getBaseObject();
}