PartDesign: [skip ci] hide base feature of pad after it successful recompute

This commit is contained in:
wmayer
2020-09-16 17:18:49 +02:00
parent ff0f8b0d85
commit a028ea94cc

View File

@@ -106,16 +106,15 @@ bool TaskDlgFeatureParameters::accept() {
throw Base::TypeError("Bad object processed in the feature dialog.");
}
App::DocumentObject* previous = static_cast<PartDesign::Feature*>(feature)->getBaseObject(/* silent = */ true );
FCMD_OBJ_HIDE(previous);
Gui::cmdAppDocument(feature, "recompute()");
if (!feature->isValid()) {
throw Base::RuntimeError(vp->getObject()->getStatusString());
}
App::DocumentObject* previous = static_cast<PartDesign::Feature*>(feature)->getBaseObject(/* silent = */ true );
Gui::cmdAppObjectHide(previous);
// detach the task panel from the selection to avoid to invoke
// eventually onAddSelection when the selection changes
std::vector<QWidget*> subwidgets = getDialogContent();