diff options
author | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2011-08-18 23:37:41 +0000 |
---|---|---|
committer | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2011-08-18 23:37:41 +0000 |
commit | 1c20e7187fa2022da66559a498dd643cd7381c16 (patch) | |
tree | ce0835996a26fb3e8baedc538ea3fe22154f5764 /gpgwin.cpp | |
parent | add almost unconfigured doxygen conf-file, which outputs qch for qtcreator (diff) | |
download | gpg4usb-1c20e7187fa2022da66559a498dd643cd7381c16.tar.gz gpg4usb-1c20e7187fa2022da66559a498dd643cd7381c16.zip |
changed verifylabellist back to one verifylabel and updated TODO
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@516 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'gpgwin.cpp')
-rw-r--r-- | gpgwin.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -726,6 +726,7 @@ int GpgWin::isSigned(const QByteArray &text) { void GpgWin::verify() { + QString status="ok"; QByteArray text = edit->curTextPage()->toPlainText().toAscii(); // TODO: toUtf8() here? preventNoDataErr(&text); @@ -756,6 +757,7 @@ void GpgWin::verify() while (sign) { verifyDetailText->append(tr("Fingerprint: ")+QString(sign->fpr)+"\n"); if (gpg_err_code(sign->status) == 9) { + status="warning"; verifyLabelText.append(tr("Key not present with Fingerprint: ")+QString(sign->fpr)); *vn->keysNotInList << sign->fpr; @@ -784,7 +786,7 @@ void GpgWin::verify() qDebug() << "sig validity reason: " << sign->validity_reason << " - " << gpg_err_code(sign->validity_reason) << " - " << gpgme_strerror(sign->validity_reason); sign = sign->next; } - //vn->setVerifyDetailText(*verifyDetailText); + vn->setVerifyDetailText(*verifyDetailText); // If an unknown key is found, enable the importfromkeyserveraction if (unknownKeyFound) { @@ -795,11 +797,8 @@ void GpgWin::verify() // Remove the last linebreak verifyLabelText.remove(verifyLabelText.length()-1,1); - vn->addVerifyLabel(verifyLabelText,"ok"); - vn->addVerifyLabel(verifyLabelText,"warning"); - vn->addVerifyLabel(verifyLabelText,"critical"); -// vn->setVerifyLabel(verifyLabelText); + vn->setVerifyLabel(verifyLabelText,status); edit->curPage()->showNotificationWidget(vn, "verifyNotification"); } |