summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vrátil <dvratil@kde.org>2016-08-04 14:40:49 (GMT)
committerDaniel Vrátil <dvratil@kde.org>2016-08-04 14:41:20 (GMT)
commitab1fe0f502604f9d59d705b09c4e8ad648f1891b (patch)
treef86090e1ef6870a4e7822a801147480a4d7bd011
parentea628492350015675d8131c5347cdc4e1cf39d92 (diff)
KeySelectionCombo: don't show keyID
-rw-r--r--src/ui/keyselectioncombo.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ui/keyselectioncombo.cpp b/src/ui/keyselectioncombo.cpp
index 7c7c4cd..0dcd2a8 100644
--- a/src/ui/keyselectioncombo.cpp
+++ b/src/ui/keyselectioncombo.cpp
@@ -165,11 +165,10 @@ public:
name = dn[QStringLiteral("CN")];
email = dn[QStringLiteral("EMAIL")];
}
- return i18nc("Name <email> (type, created: date, 0xkeyID)", "%1 (%2, created: %3, %4)",
+ return i18nc("Name <email> (type, created: date)", "%1 (%2, created: %3)",
email.isEmpty() ? name : name.isEmpty() ? email : i18nc("Name <email>", "%1 <%2>", name, email),
key.protocol() == GpgME::OpenPGP ? i18n("OpenPGP") : i18n("S/MIME"),
- Kleo::Formatting::creationDateString(key),
- Kleo::Formatting::prettyKeyID(key.shortKeyID()));
+ Kleo::Formatting::creationDateString(key));
}
case Qt::DecorationRole:
return Kleo::Formatting::iconForUid(key.userID(0));