Home GnuPG

Ensure consistent selection of the current item

Description

Ensure consistent selection of the current item

Using setCurrentIndex() instead of SelectionModel::select() ensures that
the current item is always the selected item (and vice-versa). Previously,
when changing the order of the items it could happen that current item and
selected item differed.