Home GnuPG

Emit currentKeyChanged() signal even if it is already set

Description

Emit currentKeyChanged() signal even if it is already set

If the key that is set with setCurrentKey() became the current key by
changes in the underlying model (i.e. because it happens to be the item
at the current index), then no signal was emitted. This triggered
an update problem in the key approval dialog noticed after the previous
commit.

This problem is fixed by this change because on all model changes
updateWithDefaultKey() is called which in turn calls setCurrentKey().

Details

Provenance
ikloeckerAuthored on Apr 22 2021, 12:18 PM
Parents
rLIBKLEO744e209ae607: Fix testKey() helper
Branches
Unknown
Tags
Unknown
Tasks
T5283: GpgOL: Add mixed mode for S/MIME and OpenPGP to libkleo newkeyresolver