mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-30 19:30:35 +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);
|
aString = tr("SMESH_GROUP_SELECTED").arg(aNbSel);
|
||||||
else if(myCurrentLineEdit == myGeomGroupLine)
|
else if(myCurrentLineEdit == myGeomGroupLine)
|
||||||
aString = tr("%1 Objects").arg(aNbSel);
|
aString = tr("%1 Objects").arg(aNbSel);
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
aString = aList.First()->getName();
|
aString = aList.First()->getName();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
myCurrentLineEdit->setText(aString);
|
myCurrentLineEdit->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();
|
myOldName = myName->text();
|
||||||
myName->setText(aString);
|
myName->setText(aString);
|
||||||
myCurrentLineEdit->home(false);
|
}
|
||||||
|
|
||||||
updateButtons();
|
updateButtons();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user