diff options
author | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2010-01-27 20:12:42 +0000 |
---|---|---|
committer | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2010-01-27 20:12:42 +0000 |
commit | 381182aa401ba76a4a011a9dd92d14e831a08851 (patch) | |
tree | f53225042845f0be21654d752b7c517c3dd2a66f | |
parent | edited about-menue (diff) | |
download | gpg4usb-381182aa401ba76a4a011a9dd92d14e831a08851.tar.gz gpg4usb-381182aa401ba76a4a011a9dd92d14e831a08851.zip |
fixed the keydb not found error, if umlaute are in pathname
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@247 34ebc366-c3a9-4b3c-9f84-69acf7962910
-rw-r--r-- | context.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/context.cpp b/context.cpp index af3df86..1c48a1b 100644 --- a/context.cpp +++ b/context.cpp @@ -66,8 +66,8 @@ Context::Context() #endif QString gpgKeys = appPath + "/keydb"; err = gpgme_ctx_set_engine_info(mCtx, GPGME_PROTOCOL_OpenPGP, - gpgBin.toAscii().constData(), - gpgKeys.toAscii().constData()); + gpgBin.toUtf8().constData(), + gpgKeys.toUtf8().constData()); checkErr(err); @@ -151,9 +151,11 @@ bool Context::exportKeys(QList<QString> *uidList, QByteArray *outBuffer) gpgme_key_t Context::getKeyDetails(QString uid) { - gpgme_error_t err; +// gpgme_error_t err; gpgme_key_t key; + qDebug() << "before"; + /*gpgme_op_keylist_start (mCctx, uid.toAscii().constData(), 0); gpgme_op_keylist_next (mCtx, &key); qDebug() << key->subkeys->keyid); @@ -164,7 +166,7 @@ gpgme_key_t Context::getKeyDetails(QString uid) gpgme_key_release (key);*/ gpgme_get_key (mCtx, uid.toAscii().constData(), &key, 1); - + qDebug() << "after"; return key; } |