aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/SettingsDialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xsrc/ui/SettingsDialog.cpp5
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 + ">");