[FEM] fix analysis activation issue

- after activating an analysis the FEM toolbar buttons did not become active
This commit is contained in:
Uwe
2023-02-18 20:21:30 +01:00
parent 043b8cf2d6
commit a7c5fde0e3

View File

@@ -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;
}