From d606c0d54d4ad7e1132bae0744468ce0282a5c82 Mon Sep 17 00:00:00 2001 From: skl Date: Thu, 19 Jun 2008 05:35:18 +0000 Subject: [PATCH] Update for bug IPAL19574. --- src/SMESHGUI/SMESHGUI_GroupDlg.cxx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/SMESHGUI/SMESHGUI_GroupDlg.cxx b/src/SMESHGUI/SMESHGUI_GroupDlg.cxx index 07f9587fb..4c254fa74 100644 --- a/src/SMESHGUI/SMESHGUI_GroupDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_GroupDlg.cxx @@ -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(); -- 2.39.2