diff options
author | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2012-01-19 22:06:50 +0000 |
---|---|---|
committer | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2012-01-19 22:06:50 +0000 |
commit | 48441b291c4dd3290ed0e45aa636e58e0473cf85 (patch) | |
tree | 7f55a18bbca4e6f6a6de9112600105184f8de765 /fileencryptiondialog.cpp | |
parent | use ressource file for all icons and remove iconpath (diff) | |
download | gpg4usb-48441b291c4dd3290ed0e45aa636e58e0473cf85.tar.gz gpg4usb-48441b291c4dd3290ed0e45aa636e58e0473cf85.zip |
added file.close for every file.open
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@767 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to '')
-rwxr-xr-x | fileencryptiondialog.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fileencryptiondialog.cpp b/fileencryptiondialog.cpp index 94ed540..0e1ec8b 100755 --- a/fileencryptiondialog.cpp +++ b/fileencryptiondialog.cpp @@ -37,7 +37,6 @@ FileEncryptionDialog::FileEncryptionDialog(GpgME::GpgContext *ctx, QStringList k resize(500, 200); } - setModal(true); QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel); @@ -156,8 +155,7 @@ void FileEncryptionDialog::executeAction() QByteArray inBuffer = infile.readAll(); QByteArray *outBuffer = new QByteArray(); - - + infile.close(); if ( mAction == Encrypt || (mAction == Both && radioEnc->isChecked())) { if (! mCtx->encrypt(mKeyList->getChecked(), inBuffer, outBuffer)) return; } @@ -187,7 +185,9 @@ void FileEncryptionDialog::executeAction() QDataStream out(&outfile); out.writeRawData(outBuffer->data(), outBuffer->length()); + outfile.close(); QMessageBox::information(0, "Done", "Output saved to " + outputFileEdit->text()); + accept(); } |