diff options
author | Petr Mrázek <peterix@gmail.com> | 2016-06-13 21:56:22 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2016-06-13 21:56:22 +0200 |
commit | 8b74f6dcf0f43d114473858ab85f806258d074a3 (patch) | |
tree | d35c55644ce4b733e8124458df0b0f52c8e00261 /api | |
parent | d4109938fe254aab9c37db5ba942482d365c4977 (diff) | |
download | MultiMC-8b74f6dcf0f43d114473858ab85f806258d074a3.tar MultiMC-8b74f6dcf0f43d114473858ab85f806258d074a3.tar.gz MultiMC-8b74f6dcf0f43d114473858ab85f806258d074a3.tar.lz MultiMC-8b74f6dcf0f43d114473858ab85f806258d074a3.tar.xz MultiMC-8b74f6dcf0f43d114473858ab85f806258d074a3.zip |
NOISSUE reset wroteAnyData flag when resetting FileSink
This fixes files getting overwritten with null content when stale cache
and redirects are combined
Diffstat (limited to 'api')
-rw-r--r-- | api/logic/net/FileSink.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/api/logic/net/FileSink.cpp b/api/logic/net/FileSink.cpp index b4c418a5..e912b1c9 100644 --- a/api/logic/net/FileSink.cpp +++ b/api/logic/net/FileSink.cpp @@ -30,6 +30,7 @@ JobStatus FileSink::init(QNetworkRequest& request) qCritical() << "Could not create folder for " + m_filename; return Job_Failed; } + wroteAnyData = false; m_output_file.reset(new QSaveFile(m_filename)); if (!m_output_file->open(QIODevice::WriteOnly)) { |