From a4f8dff6faaec18ffc43ce47f254e219a336a034 Mon Sep 17 00:00:00 2001 From: nils Date: Mon, 11 Jul 2011 00:59:10 +0000 Subject: 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 --- gpgwin.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'gpgwin.cpp') 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() -- cgit