mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-28 10:20:34 +05:00
Update for bug IPAL19574.
This commit is contained in:
parent
7a3da6781d
commit
d606c0d54d
@ -1159,15 +1159,22 @@ void SMESHGUI_GroupDlg::onObjectSelectionChanged()
|
||||
aString = tr("SMESH_GROUP_SELECTED").arg(aNbSel);
|
||||
else if(myCurrentLineEdit == myGeomGroupLine)
|
||||
aString = tr("%1 Objects").arg(aNbSel);
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
aString = aList.First()->getName();
|
||||
}
|
||||
}
|
||||
|
||||
myCurrentLineEdit->setText(aString);
|
||||
myOldName = myName->text();
|
||||
myName->setText(aString);
|
||||
myCurrentLineEdit->home(false);
|
||||
// 07.06.2008 skl for IPAL19574:
|
||||
// change name of group only if it is empty
|
||||
QString tmp = myName->text();
|
||||
tmp.stripWhiteSpace();
|
||||
if(tmp.isEmpty()) {
|
||||
myOldName = myName->text();
|
||||
myName->setText(aString);
|
||||
}
|
||||
|
||||
updateButtons();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user