diff options
author | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2011-10-12 21:08:32 +0000 |
---|---|---|
committer | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2011-10-12 21:08:32 +0000 |
commit | a21359c80a4ca2a2c6082faf68054f9538f7c4a8 (patch) | |
tree | ac4a8e173468a8f006160454f4f1fcd30f95df27 /context.cpp | |
parent | moved textissigned to context (diff) | |
download | gpg4usb-a21359c80a4ca2a2c6082faf68054f9538f7c4a8.tar.gz gpg4usb-a21359c80a4ca2a2c6082faf68054f9538f7c4a8.zip |
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
Diffstat (limited to '')
-rw-r--r-- | context.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
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; +} + } |