From a21359c80a4ca2a2c6082faf68054f9538f7c4a8 Mon Sep 17 00:00:00 2001 From: nils Date: Wed, 12 Oct 2011 21:08:32 +0000 Subject: verifynotification and verifydetailsdialog is refreshed on keylist-change, bt keydetailsdialog is doubled on keylist-change git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@546 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- context.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'context.cpp') diff --git a/context.cpp b/context.cpp index d7a17a1..7ba5fb9 100644 --- a/context.cpp +++ b/context.cpp @@ -649,6 +649,15 @@ int Context::textIsSigned(const QByteArray &text) { return 0; } +QString Context::beautifyFingerprint(QString fingerprint) +{ + uint len = fingerprint.length(); + if ((len > 0) && (len % 4 == 0)) + for (uint n = 0; 4 *(n + 1) < len; ++n) + fingerprint.insert(5 * n + 4, ' '); + return fingerprint; +} + } -- cgit