diff options
Diffstat (limited to '')
-rwxr-xr-x | src/ui/SettingsDialog.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ui/SettingsDialog.cpp b/src/ui/SettingsDialog.cpp index f7cd0c50..2e174b91 100755 --- a/src/ui/SettingsDialog.cpp +++ b/src/ui/SettingsDialog.cpp @@ -184,8 +184,9 @@ GeneralTab::GeneralTab(GpgME::GpgContext *ctx, QWidget *parent) keyIds.insert("", tr("<none>")); foreach (QString keyid, *mKeyList->getAllPrivateKeys()) { - GpgKey key; - mCtx->getKeyDetails(keyid, key); + + auto &key = mCtx->getKeyById(keyid); + QString newKey = " (" + keyid + ")"; if (!QString(key.email).isEmpty()) { newKey.prepend(" <" + key.email + ">"); |