aboutsummaryrefslogtreecommitdiffstats
path: root/attachments.cpp
diff options
context:
space:
mode:
authornils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2012-01-19 22:06:50 +0000
committernils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2012-01-19 22:06:50 +0000
commit48441b291c4dd3290ed0e45aa636e58e0473cf85 (patch)
tree7f55a18bbca4e6f6a6de9112600105184f8de765 /attachments.cpp
parentuse ressource file for all icons and remove iconpath (diff)
downloadgpg4usb-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 'attachments.cpp')
-rw-r--r--attachments.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/attachments.cpp b/attachments.cpp
index 82c2e6a..8158da6 100644
--- a/attachments.cpp
+++ b/attachments.cpp
@@ -127,6 +127,7 @@ void Attachments::saveByteArrayToFile(QByteArray outBuffer, QString filename)
QDataStream out(&outfile);
out.writeRawData(outBuffer.data(), outBuffer.length());
+ outfile.close();
}
/**
@@ -171,7 +172,7 @@ void Attachments::openFile() {
QDataStream out(&outfile);
out.writeRawData(outBuffer.data(), outBuffer.length());
-
+ outfile.close();
QDesktopServices::openUrl(QUrl("file://"+filename, QUrl::TolerantMode));
}