From a7c5fde0e304c6e29a13cd738e2091810da02cc1 Mon Sep 17 00:00:00 2001 From: Uwe Date: Sat, 18 Feb 2023 20:21:30 +0100 Subject: [PATCH] [FEM] fix analysis activation issue - after activating an analysis the FEM toolbar buttons did not become active --- src/Mod/Fem/Gui/ViewProviderAnalysis.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Mod/Fem/Gui/ViewProviderAnalysis.cpp b/src/Mod/Fem/Gui/ViewProviderAnalysis.cpp index 4ca5f78820..7b8a387cc5 100644 --- a/src/Mod/Fem/Gui/ViewProviderAnalysis.cpp +++ b/src/Mod/Fem/Gui/ViewProviderAnalysis.cpp @@ -114,6 +114,9 @@ bool ViewProviderFemAnalysis::doubleClicked(void) Gui::Command::doCommand(Gui::Command::Gui, "FemGui.setActiveAnalysis(App.activeDocument().%s)", this->getObject()->getNameInDocument()); + // After activation of the analysis the allowed FEM toolbar buttons should become active. + // To achieve this we must clear the object selection to trigger the selection observer. + Gui::Command::doCommand(Gui::Command::Gui, "Gui.Selection.clearSelection()"); return true; }