NOISSUE reset wroteAnyData flag when resetting FileSink

This fixes files getting overwritten with null content when stale cache
and redirects are combined
This commit is contained in:
Petr Mrázek 2016-06-13 21:56:22 +02:00
parent d4109938fe
commit 8b74f6dcf0

View File

@ -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))
{