summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2015-10-08 08:22:52 +0200
committerMontel Laurent <[email protected]>2015-10-08 08:22:52 +0200
commit2b1e48352e5db120c55faa5ffe29377f2386ebc5 (patch)
tree4937f129903080e87bcc086ed810750a9229af92
parentbc0b316b2ae40f442f7c841810a50c285e2f6d9f (diff)
Reduce size of name
CCMAIL: 353627
-rw-r--r--messagecomposer/src/job/attachmentfrompublickeyjob.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/messagecomposer/src/job/attachmentfrompublickeyjob.cpp b/messagecomposer/src/job/attachmentfrompublickeyjob.cpp
index f8886dd..8adfeb3 100644
--- a/messagecomposer/src/job/attachmentfrompublickeyjob.cpp
+++ b/messagecomposer/src/job/attachmentfrompublickeyjob.cpp
@@ -60,7 +60,7 @@ void AttachmentFromPublicKeyJob::Private::exportResult(const GpgME::Error &error
// Create the AttachmentPart.
AttachmentPart::Ptr part = AttachmentPart::Ptr(new AttachmentPart);
- part->setName(i18n("OpenPGP key 0x%1", fingerprint));
+ part->setName(i18n("OpenPGP key 0x%1", fingerprint.right(8)));
part->setFileName(QString::fromLatin1(QByteArray(QByteArray("0x") + fingerprint.toLatin1() + QByteArray(".asc"))));
part->setMimeType("application/pgp-keys");
part->setData(keyData);