From: isn Date: Thu, 11 Jan 2018 14:39:13 +0000 (+0300) Subject: refs #1508 X-Git-Tag: HYDRO_V2_0_0~25^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2FBR_2017_PORTING;p=modules%2Fhydro.git refs #1508 --- diff --git a/src/HYDROGUI/HYDROGUI_ObjListBox.cxx b/src/HYDROGUI/HYDROGUI_ObjListBox.cxx index 38ffb4c1..1d78a57f 100644 --- a/src/HYDROGUI/HYDROGUI_ObjListBox.cxx +++ b/src/HYDROGUI/HYDROGUI_ObjListBox.cxx @@ -123,7 +123,19 @@ void HYDROGUI_ObjListBox::OnExclude() { QList aSelection = myList->selectedItems(); foreach( QListWidgetItem* anItem, aSelection ) + { + QString itemText = anItem->text(); + for (int i=mySelection.Lower();i<=mySelection.Upper();i++) + { + QString name = mySelection(i)->GetName(); + if (itemText == name) + { + mySelection.Remove(i); + break; + } + } delete anItem; + } emit selectionChanged(); }