mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-21 22:13:25 -06:00
#879 Fixed issue not being able to clear selection in multiselect list
This commit is contained in:
parent
e98fc23787
commit
87492726ce
@ -290,7 +290,7 @@ void PdmUiListEditor::slotSelectionChanged(const QItemSelection & selected, cons
|
|||||||
{
|
{
|
||||||
QModelIndexList idxList = m_listView->selectionModel()->selectedIndexes();
|
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
|
// 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
|
// An invalid call to setSelection() from QAbstractItemView::keyPressEvent() causes the stepping using arrow keys
|
||||||
|
Loading…
Reference in New Issue
Block a user