From: dmv Date: Tue, 1 Jul 2008 12:38:09 +0000 (+0000) Subject: Bug IPAL20038 Name disappears in Create Group on Mesh dialog box when Group type... X-Git-Tag: V4_1_4a1~52 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=15ec793e1de9a0742afd2be7cac53199d96e6d3f;p=modules%2Fsmesh.git Bug IPAL20038 Name disappears in Create Group on Mesh dialog box when Group type is changed. --- diff --git a/src/SMESHGUI/SMESHGUI_GroupDlg.cxx b/src/SMESHGUI/SMESHGUI_GroupDlg.cxx index 4c254fa74..a28d2f0a6 100644 --- a/src/SMESHGUI/SMESHGUI_GroupDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_GroupDlg.cxx @@ -517,7 +517,6 @@ void SMESHGUI_GroupDlg::init (SMESH::SMESH_GroupBase_ptr theGroup) myName->setText(theGroup->GetName()); myName->home(false); - myOldName = myName->text(); SALOMEDS::Color aColor = theGroup->GetColor(); setGroupColor( aColor ); @@ -620,6 +619,7 @@ void SMESHGUI_GroupDlg::updateButtons() //================================================================================= void SMESHGUI_GroupDlg::onNameChanged (const QString& text) { + myOldName = myName->text(); updateButtons(); } @@ -646,8 +646,7 @@ void SMESHGUI_GroupDlg::onGrpTypeChanged (int id) { if (myGrpTypeId != id) { myWGStack->raiseWidget( id ); - if (id == 0) - myName->setText(myOldName); + myName->setText(myOldName); onSelectGeomGroup(id == 1); } myGrpTypeId = id;