diff options
-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"), |