diff options
author | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2012-01-26 19:21:51 +0000 |
---|---|---|
committer | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2012-01-26 19:21:51 +0000 |
commit | d02a237cb2e55eb4aa330fd3da9309e7ecbe8768 (patch) | |
tree | b5eb7cb2cd1d837adabd8617e232653f5102af29 /keydetailsdialog.cpp | |
parent | show messagebox, when key export failed. Added more comments (diff) | |
download | gpg4usb-d02a237cb2e55eb4aa330fd3da9309e7ecbe8768.tar.gz gpg4usb-d02a237cb2e55eb4aa330fd3da9309e7ecbe8768.zip |
refresh files
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@782 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'keydetailsdialog.cpp')
-rw-r--r-- | keydetailsdialog.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/keydetailsdialog.cpp b/keydetailsdialog.cpp index 197c4eb..1dc3d2d 100644 --- a/keydetailsdialog.cpp +++ b/keydetailsdialog.cpp @@ -198,9 +198,10 @@ void KeyDetailsDialog::exportPrivateKey() QString fileString = QString(key->uids->name) + " " + QString(key->uids->email) + "(" + QString(key->subkeys->keyid)+ ")_pub_sec.asc"; QString fileName = QFileDialog::getSaveFileName(this, tr("Export Key To File"), fileString, tr("Key Files") + " (*.asc *.txt);;All Files (*)"); QFile file(fileName); - if (!file.open(QIODevice::WriteOnly | QIODevice::Text)) + if (!file.open(QIODevice::WriteOnly | QIODevice::Text)) { QMessageBox::critical(0,tr("Export error"),tr("Couldn't open %1 for writing").arg(fileName)); return; + } QTextStream stream(&file); stream << *keyArray; file.close(); |