aboutsummaryrefslogtreecommitdiffstats
path: root/context.cpp
diff options
context:
space:
mode:
authorubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910>2011-01-30 03:20:19 +0100
committerubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910>2011-01-30 03:20:19 +0100
commit2c5a0b4ec6ecd013a4e9105879745ab7cb859ef8 (patch)
treec71e4107c06f6871cba6f32f6de83b02b7b68e78 /context.cpp
parentrestructured code of about dialog (diff)
downloadgpg4usb-2c5a0b4ec6ecd013a4e9105879745ab7cb859ef8.tar.gz
gpg4usb-2c5a0b4ec6ecd013a4e9105879745ab7cb859ef8.zip
don't replace text if decryption failed, e.g. there was no text to decrypt
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@459 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'context.cpp')
-rw-r--r--context.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/context.cpp b/context.cpp
index 736eba5..46dcbc6 100644
--- a/context.cpp
+++ b/context.cpp
@@ -320,6 +320,7 @@ bool Context::decrypt(const QByteArray &inBuffer, QByteArray *outBuffer)
}
if (err != GPG_ERR_NO_ERROR && err != GPG_ERR_CANCELED) {
QMessageBox::critical(0, tr("Error decrypting:"), gpgme_strerror(err));
+ return false;
}
//if (err != GPG_ERR_NO_ERROR)