aboutsummaryrefslogtreecommitdiffstats
path: root/gpgwin.cpp
diff options
context:
space:
mode:
authornils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2011-08-18 23:37:41 +0000
committernils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2011-08-18 23:37:41 +0000
commit1c20e7187fa2022da66559a498dd643cd7381c16 (patch)
treece0835996a26fb3e8baedc538ea3fe22154f5764 /gpgwin.cpp
parentadd almost unconfigured doxygen conf-file, which outputs qch for qtcreator (diff)
downloadgpg4usb-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.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/gpgwin.cpp b/gpgwin.cpp
index 529184b..923d2ab 100644
--- a/gpgwin.cpp
+++ b/gpgwin.cpp
@@ -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");
}