From 403dde950b4a7398c856d495ed2d66157b175bf1 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Fri, 23 Mar 2018 12:01:46 +0900 Subject: DownloadFileJob::beforeStart(): make sure to immediately return in case of error --- jobs/downloadfilejob.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/jobs/downloadfilejob.cpp b/jobs/downloadfilejob.cpp index 07d14197..6a3d8483 100644 --- a/jobs/downloadfilejob.cpp +++ b/jobs/downloadfilejob.cpp @@ -54,6 +54,7 @@ void DownloadFileJob::beforeStart(const ConnectionData*) qCWarning(JOBS) << "Couldn't open the temporary file" << d->tempFile->fileName() << "for writing"; setStatus(FileError, "Could not open the temporary download file"); + return; } qCDebug(JOBS) << "Downloading to" << d->tempFile->fileName(); } -- cgit v1.2.3