diff options
author | ubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2010-05-14 22:29:02 +0000 |
---|---|---|
committer | ubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2010-05-14 22:29:02 +0000 |
commit | 61f8602e78ff81a2078b17bdb4fc1cc37c6ce63a (patch) | |
tree | 5152c6a701e026e97ad5d5abd8bf48a6c7bafbb0 | |
parent | add mimetype-icons to model (diff) | |
download | gpg4usb-61f8602e78ff81a2078b17bdb4fc1cc37c6ce63a.tar.gz gpg4usb-61f8602e78ff81a2078b17bdb4fc1cc37c6ce63a.zip |
don't try to save file if abort is hit
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@331 34ebc366-c3a9-4b3c-9f84-69acf7962910
-rw-r--r-- | attachments.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/attachments.cpp b/attachments.cpp index 4e62bd9..6cc03bd 100644 --- a/attachments.cpp +++ b/attachments.cpp @@ -98,6 +98,8 @@ void Attachments::saveByteArrayToFile(QByteArray outBuffer, QString filename) QString path=filename; QString outfileName = QFileDialog::getSaveFileName(this, tr("Save File"), path); + if(outfileName.isEmpty()) return; + QFile outfile(outfileName); if (!outfile.open(QFile::WriteOnly)) { QMessageBox::warning(this, tr("File"), |