From eafb5361b2ceb0e042e9b7f9ff46a856e0be34ab Mon Sep 17 00:00:00 2001 From: abd Date: Fri, 3 Nov 2006 14:32:16 +0000 Subject: [PATCH] Fix 13730 Saving of togle button state --- src/SMESHGUI/SMESHGUI_MeshOp.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/SMESHGUI/SMESHGUI_MeshOp.cxx b/src/SMESHGUI/SMESHGUI_MeshOp.cxx index ffca225e5..a7b402cdd 100644 --- a/src/SMESHGUI/SMESHGUI_MeshOp.cxx +++ b/src/SMESHGUI/SMESHGUI_MeshOp.cxx @@ -854,6 +854,9 @@ void SMESHGUI_MeshOp::createHypothesis (const int theDim, { // During a hypothesis creation we might need to select some objects. // Main dialog must not update it's own selected objects in this case. + + // but the state of the ToggleButtons should be saved to restore it later + LightApp_SimpleGuiStateMap dlgState = dlg()->getActiveState(); dlg()->deactivateAll(); HypothesisData* aData = SMESH::GetHypothesisData(theTypeName.latin1()); @@ -882,6 +885,8 @@ void SMESHGUI_MeshOp::createHypothesis (const int theDim, SMESH::CreateHypothesis(theTypeName, aData->Label, false); } } + // restore the state of toggle buttons: + dlg()->restoreState(dlgState); _PTR(SComponent) aFather = SMESH::GetActiveStudyDocument()->FindComponent("SMESH"); -- 2.39.2