From 2615bcb97c94f7d045d934c766d63a4aea97f03a Mon Sep 17 00:00:00 2001 From: nils Date: Wed, 3 Aug 2011 07:28:53 +0000 Subject: css for verifynotification git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@508 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- gpgwin.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gpgwin.cpp') diff --git a/gpgwin.cpp b/gpgwin.cpp index 8ff869c..226f71b 100644 --- a/gpgwin.cpp +++ b/gpgwin.cpp @@ -753,6 +753,7 @@ void GpgWin::verify() qDebug() << "sign->fpr:" << sign->fpr; verifyLabelText.append(" not present."); *vn->keysNotInList << sign->fpr; + vn->setProperty("keyNotFound", true); } else { QString name = mKeyList->getKeyNameByFpr(sign->fpr); QString email = "<"+mKeyList->getKeyEmailByFpr(sign->fpr)+">"; @@ -762,6 +763,7 @@ void GpgWin::verify() verifyLabelText.append(name); verifyLabelText.append(email); verifyLabelText.append(gpg_strerror(sign->status)); + vn->setProperty("keyFound", true); } verifyLabelText.append(".\n"); qDebug() << "sig summary: " << sign->summary; @@ -775,7 +777,8 @@ void GpgWin::verify() verifyLabelText.remove(verifyLabelText.length()-1,1); vn->setVerifyLabel(verifyLabelText); - edit->curPage()->showNotificationWidget(vn); + edit->curPage()->removeNoteByClass("verifyNotification"); + edit->curPage()->showNotificationWidget(vn, "verifyNotification"); } void GpgWin::importKeyDialog() -- cgit v1.2.3