From 87492726ceeda4be526938b5fda0e56eafb0eb03 Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Fri, 11 Nov 2016 16:15:02 +0100 Subject: [PATCH] #879 Fixed issue not being able to clear selection in multiselect list --- Fwk/AppFwk/cafUserInterface/cafPdmUiListEditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Fwk/AppFwk/cafUserInterface/cafPdmUiListEditor.cpp b/Fwk/AppFwk/cafUserInterface/cafPdmUiListEditor.cpp index bbaceb7499..13eb61c3e1 100644 --- a/Fwk/AppFwk/cafUserInterface/cafPdmUiListEditor.cpp +++ b/Fwk/AppFwk/cafUserInterface/cafPdmUiListEditor.cpp @@ -290,7 +290,7 @@ void PdmUiListEditor::slotSelectionChanged(const QItemSelection & selected, cons { QModelIndexList idxList = m_listView->selectionModel()->selectedIndexes(); - if (idxList.size() <= 1) + if (idxList.size() == 1) { // NOTE : Workaround for update issue seen on RHEL6 with Qt 4.6.2 // An invalid call to setSelection() from QAbstractItemView::keyPressEvent() causes the stepping using arrow keys