aboutsummaryrefslogtreecommitdiffstats
path: root/gpgwin.cpp
diff options
context:
space:
mode:
authornils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2011-07-11 00:59:10 +0000
committernils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2011-07-11 00:59:10 +0000
commita4f8dff6faaec18ffc43ce47f254e219a336a034 (patch)
treeb5835929fd142b4b800ea9d43ceccf17d880826e /gpgwin.cpp
parentremoved margins in attachment-table (diff)
downloadgpg4usb-a4f8dff6faaec18ffc43ce47f254e219a336a034.tar.gz
gpg4usb-a4f8dff6faaec18ffc43ce47f254e219a336a034.zip
added Qlabel at the buttom of textedit for verify
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@491 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'gpgwin.cpp')
-rw-r--r--gpgwin.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/gpgwin.cpp b/gpgwin.cpp
index 400c64a..ba448ff 100644
--- a/gpgwin.cpp
+++ b/gpgwin.cpp
@@ -694,7 +694,12 @@ void GpgWin::sign()
void GpgWin::verify()
{
- mCtx->verify(edit->curTextPage()->toPlainText().toUtf8());
+ int error = mCtx->verify(edit->curTextPage()->toPlainText().toUtf8());
+ if (error == 0) {
+ edit->curPage()->showVerifyLabel(true);
+ } else {
+ edit->curPage()->showVerifyLabel(false);
+ }
}
void GpgWin::importKeyDialog()