From 4ecc173307c8c1ed13f28b6955484a484a25402a Mon Sep 17 00:00:00 2001 From: ubbo Date: Tue, 1 May 2012 11:27:14 +0000 Subject: verify for files (not yet working) git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@909 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- verifynotification.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'verifynotification.cpp') diff --git a/verifynotification.cpp b/verifynotification.cpp index 3e056b9..1230534 100644 --- a/verifynotification.cpp +++ b/verifynotification.cpp @@ -87,7 +87,9 @@ void VerifyNotification::showImportAction(bool visible) void VerifyNotification::showVerifyDetails() { - new VerifyDetailsDialog(this, mCtx, mKeyList, mTextpage); + QByteArray text = mTextpage->toPlainText().toUtf8(); + mCtx->preventNoDataErr(&text); + new VerifyDetailsDialog(this, mCtx, mKeyList, &text); } bool VerifyNotification::refresh() @@ -98,7 +100,7 @@ bool VerifyNotification::refresh() mCtx->preventNoDataErr(&text); int textIsSigned = mCtx->textIsSigned(text); - gpgme_signature_t sign = mCtx->verify(text); + gpgme_signature_t sign = mCtx->verify(&text); if (sign == NULL) { return false; -- cgit