#879 Fixed issue not being able to clear selection in multiselect list

This commit is contained in:
Magne Sjaastad 2016-11-11 16:15:02 +01:00
parent e98fc23787
commit 87492726ce

View File

@ -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