PD: make sure to switch off Profile and Section highlighting when closing sweep dialog

This commit is contained in:
wmayer
2021-11-11 20:33:27 +01:00
parent fb9a3eecff
commit 126fadd2d6

View File

@@ -161,6 +161,7 @@ TaskPipeParameters::~TaskPipeParameters()
// setting visibility to true is needed when preselecting profile and path prior to invoking sweep
Gui::cmdGuiObject(pipe, "Visibility = True");
static_cast<ViewProviderPipe*>(vp)->highlightReferences(ViewProviderPipe::Spine, false);
static_cast<ViewProviderPipe*>(vp)->highlightReferences(ViewProviderPipe::Profile, false);
}
}
catch (const Base::Exception& e) {
@@ -956,6 +957,9 @@ TaskPipeScaling::TaskPipeScaling(ViewProviderPipe* PipeView, bool /*newObj*/, QW
TaskPipeScaling::~TaskPipeScaling()
{
if (vp) {
static_cast<ViewProviderPipe*>(vp)->highlightReferences(ViewProviderPipe::Section, false);
}
}
void TaskPipeScaling::clearButtons(const selectionModes notThis)