aboutsummaryrefslogtreecommitdiffstats
path: root/context.cpp
diff options
context:
space:
mode:
authornils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2009-01-04 01:44:25 +0000
committernils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2009-01-04 01:44:25 +0000
commita6e1eb872b6de85d4b4059ac561a18f0a3a1fd30 (patch)
tree6f93fa3c2c566b2b784e267a3c12386f81c2c44d /context.cpp
parentadded pwstrength-check to key generation (diff)
downloadgpg4usb-a6e1eb872b6de85d4b4059ac561a18f0a3a1fd30.tar.gz
gpg4usb-a6e1eb872b6de85d4b4059ac561a18f0a3a1fd30.zip
updated TODO and fixed key export error, when no key is selected
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@207 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'context.cpp')
-rw-r--r--context.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/context.cpp b/context.cpp
index 846cf36..a46fa87 100644
--- a/context.cpp
+++ b/context.cpp
@@ -121,7 +121,7 @@ void Context::generateKey(QString *params)
/** Export Key to QByteArray
*
*/
-void Context::exportKeys(QList<QString> *uidList, QByteArray *outBuffer)
+bool Context::exportKeys(QList<QString> *uidList, QByteArray *outBuffer)
{
size_t read_bytes;
gpgme_data_t out = 0;
@@ -129,7 +129,7 @@ void Context::exportKeys(QList<QString> *uidList, QByteArray *outBuffer)
if (uidList->count() == 0) {
QMessageBox::critical(0, "Export Keys Error", "No Keys Selected");
- return;
+ return false;
}
for (int i = 0; i < uidList->count(); i++) {
@@ -145,6 +145,7 @@ void Context::exportKeys(QList<QString> *uidList, QByteArray *outBuffer)
checkErr(err);
gpgme_data_release(out);
}
+ return true;
}
/** List all availabe Keys (VERY much like kgpgme)