From: Artem Zhidkov Date: Fri, 3 Apr 2020 14:26:29 +0000 (+0300) Subject: Issue #18944: Cannot delete Part X-Git-Tag: V9_5_0a2~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=135d15efcc2d35b913112e28efa3660104825100;p=modules%2Fshaper.git Issue #18944: Cannot delete Part Make PartSet active document when removing a Part. --- diff --git a/src/PartSetPlugin/PartSetPlugin_Remove.cpp b/src/PartSetPlugin/PartSetPlugin_Remove.cpp index dee53bf56..a17bfee5e 100644 --- a/src/PartSetPlugin/PartSetPlugin_Remove.cpp +++ b/src/PartSetPlugin/PartSetPlugin_Remove.cpp @@ -46,6 +46,8 @@ void PartSetPlugin_Remove::execute() std::set > aRefFeatures; aRoot->refsToFeature(aFeature, aRefFeatures); if (aRefFeatures.empty()) { + // before removing the part make the partSet active document + aPManager->setActiveDocument(aRoot); aRoot->removeFeature(aFeature); // the redisplay signal should be flushed in order to erase the feature presentation // in the viewer after removeFeature from the document