From c09ef943f76a9693af6a045220070f685847e458 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Insaurralde=20Avalos?= Date: Sun, 9 Jul 2023 00:48:00 -0400 Subject: [PATCH] Fix #9792: PD tasks fail to launch if body is inside Part and activated introduced by PR #9557 --- src/Mod/PartDesign/Gui/Utils.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Mod/PartDesign/Gui/Utils.cpp b/src/Mod/PartDesign/Gui/Utils.cpp index 0337b048f4..2e1db4dd01 100644 --- a/src/Mod/PartDesign/Gui/Utils.cpp +++ b/src/Mod/PartDesign/Gui/Utils.cpp @@ -89,10 +89,9 @@ bool setEdit(App::DocumentObject *obj, PartDesign::Body *body) { return false; App::DocumentObject *parent = nullptr; std::string subname; - auto activeBody = activeView->getActiveObject(PDBODYKEY,&parent,&subname); + auto activeBody = activeView->getActiveObject(PDBODYKEY); if (activeBody != body) { parent = obj; - subname.clear(); } else { parent = getParent(obj, subname);