QString aCurrentEntry = myEntry;
+ // clear
+ myActor = 0;
if ( myCurrentLineEdit )
- {
- // clear
- myActor = 0;
-
myCurrentLineEdit->setText("");
- if (!GroupButtons->isEnabled()) // inactive
- return;
-
- mySimulation->SetVisibility(false);
-
- // get selected mesh
- SALOME_ListIO aList;
- mySelectionMgr->selectedObjects(aList);
+ if (!GroupButtons->isEnabled()) // inactive
+ return;
- if (aList.Extent() != 1)
- {
- UpdateTable();
- updateButtons();
- return;
- }
+ mySimulation->SetVisibility(false);
- Handle(SALOME_InteractiveObject) anIO = aList.First();
- myEntry = anIO->getEntry();
- myMesh = SMESH::GetMeshByIO(anIO);
- if (myMesh->_is_nil()) {
- updateButtons();
- return;
- }
+ // get selected mesh
+ SALOME_ListIO aList;
+ mySelectionMgr->selectedObjects(aList);
- myActor = SMESH::FindActorByEntry(anIO->getEntry());
+ if (aList.Extent() != 1)
+ {
+ UpdateTable();
+ updateButtons();
+ return;
+ }
+ Handle(SALOME_InteractiveObject) anIO = aList.First();
+ myEntry = anIO->getEntry();
+ myMesh = SMESH::GetMeshByIO(anIO);
+ if (myMesh->_is_nil()) {
+ updateButtons();
+ return;
}
+ myActor = SMESH::FindActorByEntry(anIO->getEntry());
+
// process groups
if ( !myMesh->_is_nil() && myEntry != aCurrentEntry ) {
SMESH::ElementType anElementType;