myName->setText(theGroup->GetName());
myName->home(false);
- myOldName = myName->text();
SALOMEDS::Color aColor = theGroup->GetColor();
setGroupColor( aColor );
//=================================================================================
void SMESHGUI_GroupDlg::onNameChanged (const QString& text)
{
+ myOldName = myName->text();
updateButtons();
}
{
if (myGrpTypeId != id) {
myWGStack->raiseWidget( id );
- if (id == 0)
- myName->setText(myOldName);
+ myName->setText(myOldName);
onSelectGeomGroup(id == 1);
}
myGrpTypeId = id;