diff options
author | ubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2012-01-18 22:08:30 +0000 |
---|---|---|
committer | ubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2012-01-18 22:08:30 +0000 |
commit | b9521c2263aaf40eb163b548ce99df8608394362 (patch) | |
tree | 799e252fb3e7420d172f9f33a1f8428808945540 | |
parent | save 'showWizard' to settings on finishing wizard (diff) | |
download | gpg4usb-b9521c2263aaf40eb163b548ce99df8608394362.tar.gz gpg4usb-b9521c2263aaf40eb163b548ce99df8608394362.zip |
import private and public keys with one import-method call
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@754 34ebc366-c3a9-4b3c-9f84-69acf7962910
-rw-r--r-- | wizard.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -233,8 +233,6 @@ bool ImportFromGnupgPage::importKeysFromGnupg() return false; } QByteArray inBuffer = file.readAll(); - mKeyMgmt->importKeys(inBuffer); - inBuffer.clear(); file.close(); // try to import public keys @@ -244,7 +242,7 @@ bool ImportFromGnupgPage::importKeysFromGnupg() QMessageBox::critical(0, tr("Import error"), tr("Couldn't open public keyringfile: ") + pubRingFile); return false; } - inBuffer = file.readAll(); + inBuffer.append(file.readAll()); mKeyMgmt->importKeys(inBuffer); inBuffer.clear(); file.close(); |