mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-28 10:20:34 +05:00
Bug IPAL20038 Name disappears in Create Group on Mesh dialog box when Group type is changed.
This commit is contained in:
parent
4f55f53101
commit
15ec793e1d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user