Fix for bug PAL10407 ( Can't select a mesh in the "create group" dialog box if a geom shape is selected ).

This commit is contained in:
mzn 2005-11-02 12:39:41 +00:00
parent 1e3cd4b833
commit 38598e5ecb

View File

@ -720,7 +720,10 @@ void SMESHGUI_GroupDlg::onObjectSelectionChanged()
{ {
myMesh = SMESH::IObjectToInterface<SMESH::SMESH_Mesh>(IO); myMesh = SMESH::IObjectToInterface<SMESH::SMESH_Mesh>(IO);
if(myMesh->_is_nil()) if(myMesh->_is_nil())
{
busy = false;
return; return;
}
myGroup = SMESH::SMESH_Group::_nil(); myGroup = SMESH::SMESH_Group::_nil();
myActor = SMESH::FindActorByObject(myMesh); myActor = SMESH::FindActorByObject(myMesh);
@ -740,7 +743,10 @@ void SMESHGUI_GroupDlg::onObjectSelectionChanged()
{ {
SMESH::SMESH_Group_var aGroup = SMESH::IObjectToInterface<SMESH::SMESH_Group>(IO); SMESH::SMESH_Group_var aGroup = SMESH::IObjectToInterface<SMESH::SMESH_Group>(IO);
if(aGroup->_is_nil()) if(aGroup->_is_nil())
{
busy = false;
return; return;
}
busy = false; busy = false;
myCurrentLineEdit = 0; myCurrentLineEdit = 0;
init(aGroup); init(aGroup);