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:
parent
d4109938fe
commit
8b74f6dcf0
@ -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))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user