aboutsummaryrefslogtreecommitdiffstats
path: root/attachments.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'attachments.cpp')
-rw-r--r--attachments.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/attachments.cpp b/attachments.cpp
index ad56540..d25db21 100644
--- a/attachments.cpp
+++ b/attachments.cpp
@@ -90,7 +90,7 @@ void Attachments::saveFile()
QString filename = mp.getParam("Content-Type", "name");
// TODO: find out why filename is quoted
filename.chop(1);
- filename.remove(0,1);
+ filename.remove(0, 1);
// TODO: check if really base64
saveByteArrayToFile(QByteArray::fromBase64(mp.body), filename);
@@ -100,10 +100,10 @@ void Attachments::saveByteArrayToFile(QByteArray outBuffer, QString filename)
{
//QString path="";
- QString path=filename;
+ QString path = filename;
QString outfileName = QFileDialog::getSaveFileName(this, tr("Save File"), path);
- if(outfileName.isEmpty()) return;
+ if (outfileName.isEmpty()) return;
QFile outfile(outfileName);
if (!outfile.open(QFile::WriteOnly)) {
@@ -122,6 +122,6 @@ void Attachments::saveByteArrayToFile(QByteArray outBuffer, QString filename)
void Attachments::addMimePart(MimePart *mp)
{
- table->add(*mp);
+ table->add(*mp);
}