aboutsummaryrefslogtreecommitdiffstats
path: root/gpgwin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gpgwin.cpp')
-rw-r--r--gpgwin.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/gpgwin.cpp b/gpgwin.cpp
index 1ee8b7f..7ed6072 100644
--- a/gpgwin.cpp
+++ b/gpgwin.cpp
@@ -694,7 +694,7 @@ void GpgWin::verify()
case GPG_ERR_NO_PUBKEY:
{
verifyStatus=VERIFY_ERROR_WARN;
- verifyLabelText.append(tr("Key not present with Fingerprint: ")+beautifyFingerprint(QString(sign->fpr)));
+ verifyLabelText.append(tr("Key not present with Fingerprint: ")+KeyDetailsDialog::beautifyFingerprint(QString(sign->fpr)));
*vn->keysNotInList << sign->fpr;
unknownKeyFound=true;
break;
@@ -712,7 +712,7 @@ void GpgWin::verify()
default:
{
verifyStatus=VERIFY_ERROR_WARN;
- verifyLabelText.append(tr("Error for key with fingerprint ")+beautifyFingerprint(QString(sign->fpr)));
+ verifyLabelText.append(tr("Error for key with fingerprint ")+KeyDetailsDialog::beautifyFingerprint(QString(sign->fpr)));
break;
}
}
@@ -834,11 +834,3 @@ void GpgWin::cleanDoubleLinebreaks() {
content.replace("\n\n", "\n");
edit->fillTextEditWithText(content);
}
-
-QString GpgWin::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;
-}