From a028ea94ccdc0c024c73e6d583fcf11b2c039d46 Mon Sep 17 00:00:00 2001 From: wmayer Date: Wed, 16 Sep 2020 17:18:49 +0200 Subject: [PATCH] PartDesign: [skip ci] hide base feature of pad after it successful recompute --- src/Mod/PartDesign/Gui/TaskFeatureParameters.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Mod/PartDesign/Gui/TaskFeatureParameters.cpp b/src/Mod/PartDesign/Gui/TaskFeatureParameters.cpp index 86ff21c778..37e6cb2f4d 100644 --- a/src/Mod/PartDesign/Gui/TaskFeatureParameters.cpp +++ b/src/Mod/PartDesign/Gui/TaskFeatureParameters.cpp @@ -106,16 +106,15 @@ bool TaskDlgFeatureParameters::accept() { throw Base::TypeError("Bad object processed in the feature dialog."); } - App::DocumentObject* previous = static_cast(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(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 subwidgets = getDialogContent();