From 28bcc3d0972361fc777c542568529acbcdaa4dcf Mon Sep 17 00:00:00 2001 From: "Zheng, Lei" Date: Tue, 26 Sep 2023 13:13:27 +0800 Subject: [PATCH] Gui: fix selection of nested object in App::Part --- src/Gui/Tree.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/Gui/Tree.cpp b/src/Gui/Tree.cpp index 2dfab108ad..cb8c2cc721 100644 --- a/src/Gui/Tree.cpp +++ b/src/Gui/Tree.cpp @@ -4184,11 +4184,6 @@ void DocumentItem::updateItemSelection(DocumentObjectItem* item) { App::DocumentObject* topParent = nullptr; item->getSubName(str, topParent); if (topParent) { - if (topParent->hasExtension(App::GeoFeatureGroupExtension::getExtensionClassTypeId())) { - // remove legacy selection, i.e. those without subname - Gui::Selection().rmvSelection(obj->getDocument()->getName(), - obj->getNameInDocument(), nullptr); - } if (!obj->redirectSubName(str, topParent, nullptr)) str << obj->getNameInDocument() << '.'; obj = topParent;