Commit 4dd34924 authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Select the first item in both lists after filling the lists

Previously, the first item was the current item, but it wasn't selected
which made keyboard navigation awkward. Now one can immediately interact
with the current item after moving the focus to the list.

Note: setCurrentItem selects the current item.

GnuPG-bug-id: 6089
parent 381f0441
......@@ -186,6 +186,7 @@ void Kleo::DNAttributeOrderConfigWidget::setAttributeOrder(const QStringList &or
last->setText(1, DN::attributeNameToLabel(attr));
}
}
d->currentLV->setCurrentItem(d->currentLV->topLevelItem(0));
// fill the LHS listview with what's left:
......@@ -202,6 +203,7 @@ void Kleo::DNAttributeOrderConfigWidget::setAttributeOrder(const QStringList &or
if (!d->placeHolderItem->treeWidget()) {
d->availableLV->addTopLevelItem(d->placeHolderItem);
}
d->availableLV->setCurrentItem(d->availableLV->topLevelItem(0));
}
void Kleo::DNAttributeOrderConfigWidget::takePlaceHolderItem()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment