Additional fix for bug IPAL11402.

This commit is contained in:
mzn 2006-03-20 15:34:20 +00:00
parent 2eac35a1cf
commit 5372a02307

View File

@ -452,7 +452,7 @@ void SMESHGUI_GroupDlg::init (SMESH::SMESH_Mesh_ptr theMesh)
void SMESHGUI_GroupDlg::init (SMESH::SMESH_GroupBase_ptr theGroup) void SMESHGUI_GroupDlg::init (SMESH::SMESH_GroupBase_ptr theGroup)
{ {
myMesh = theGroup->GetMesh(); myMesh = theGroup->GetMesh();
myName->setText(theGroup->GetName()); myName->setText(theGroup->GetName());
myName->home(false); myName->home(false);
@ -854,6 +854,7 @@ void SMESHGUI_GroupDlg::onObjectSelectionChanged()
if (aNbSel != 1 ) { if (aNbSel != 1 ) {
myGroup = SMESH::SMESH_Group::_nil(); myGroup = SMESH::SMESH_Group::_nil();
myGroupOnGeom = SMESH::SMESH_GroupOnGeom::_nil();
myMesh = SMESH::SMESH_Mesh::_nil(); myMesh = SMESH::SMESH_Mesh::_nil();
myIsBusy = false; myIsBusy = false;
return; return;
@ -890,12 +891,14 @@ void SMESHGUI_GroupDlg::onObjectSelectionChanged()
} }
myIsBusy = false; myIsBusy = false;
myCurrentLineEdit = 0; myCurrentLineEdit = 0;
myGroup = SMESH::SMESH_Group::_nil();
myGroupOnGeom = SMESH::SMESH_GroupOnGeom::_nil();
init(aGroup); init(aGroup);
myIsBusy = true; myIsBusy = true;
mySelectSubMesh->setEnabled(true); mySelectSubMesh->setEnabled(true);
mySelectGroup->setEnabled(true); mySelectGroup->setEnabled(true);
myGeomGroupBtn->setEnabled(true);
myGeomGroupLine->setEnabled(true);
} }
myCurrentLineEdit = 0; myCurrentLineEdit = 0;
myIsBusy = false; myIsBusy = false;