mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-04-08 10:47:27 +05:00
Fixed Salome crashed after close application with opened "Add Quadratic element"
This commit is contained in:
parent
ea8a0289f1
commit
14fc167a53
@ -933,41 +933,37 @@ void SMESHGUI_AddQuadraticElementDlg::SelectionIntoArgument()
|
|||||||
|
|
||||||
QString aCurrentEntry = myEntry;
|
QString aCurrentEntry = myEntry;
|
||||||
|
|
||||||
|
// clear
|
||||||
|
myActor = 0;
|
||||||
if ( myCurrentLineEdit )
|
if ( myCurrentLineEdit )
|
||||||
{
|
|
||||||
// clear
|
|
||||||
myActor = 0;
|
|
||||||
|
|
||||||
myCurrentLineEdit->setText("");
|
myCurrentLineEdit->setText("");
|
||||||
|
|
||||||
if (!GroupButtons->isEnabled()) // inactive
|
if (!GroupButtons->isEnabled()) // inactive
|
||||||
return;
|
return;
|
||||||
|
|
||||||
mySimulation->SetVisibility(false);
|
mySimulation->SetVisibility(false);
|
||||||
|
|
||||||
// get selected mesh
|
// get selected mesh
|
||||||
SALOME_ListIO aList;
|
SALOME_ListIO aList;
|
||||||
mySelectionMgr->selectedObjects(aList);
|
mySelectionMgr->selectedObjects(aList);
|
||||||
|
|
||||||
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());
|
|
||||||
|
|
||||||
|
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
|
// process groups
|
||||||
if ( !myMesh->_is_nil() && myEntry != aCurrentEntry ) {
|
if ( !myMesh->_is_nil() && myEntry != aCurrentEntry ) {
|
||||||
SMESH::ElementType anElementType;
|
SMESH::ElementType anElementType;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user