mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-26 17:30:35 +05:00
Fix 13730
Saving of togle button state
This commit is contained in:
parent
0a2050d0aa
commit
eafb5361b2
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user