mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1075 Fixed toggle of single item when two items are selected
This commit is contained in:
@@ -290,7 +290,10 @@ void PdmUiListEditor::slotSelectionChanged(const QItemSelection & selected, cons
|
||||
{
|
||||
QModelIndexList idxList = m_listView->selectionModel()->selectedIndexes();
|
||||
|
||||
if (idxList.size() == 1)
|
||||
QVariant fieldValue = field()->uiValue();
|
||||
QList<QVariant> valuesSelectedInField = fieldValue.toList();
|
||||
|
||||
if (idxList.size() == 1 && valuesSelectedInField.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
|
||||
|
Reference in New Issue
Block a user