From d05cb1cde618eff98caad711d6140437baaa3a3f Mon Sep 17 00:00:00 2001 From: akl Date: Thu, 24 Apr 2008 11:46:09 +0000 Subject: [PATCH] Fix of IPAL19661 (Qt4 porting. Merge Nodes (Elements).Edit selected group.Selection of elements differs). --- src/SMESHGUI/SMESHGUI_EditMeshDlg.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/SMESHGUI/SMESHGUI_EditMeshDlg.cxx b/src/SMESHGUI/SMESHGUI_EditMeshDlg.cxx index fd7ce10f0..1a1c4ae01 100644 --- a/src/SMESHGUI/SMESHGUI_EditMeshDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_EditMeshDlg.cxx @@ -684,8 +684,9 @@ void SMESHGUI_EditMeshDlg::onEditGroup() for (int i = 0; i < ListEdit->count(); i++ ) aNewIds.append(ListEdit->item(i)->text()); - ListCoincident->currentItem()->setText(aNewIds.join(" ")); - ListCoincident->currentItem()->setSelected(true); + ListCoincident->clearSelection(); + selItems.first()->setText(aNewIds.join(" ")); + selItems.first()->setSelected(true); } //=================================================================================