diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-08-29 12:36:34 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-29 12:36:34 +0900 |
commit | 3b6959ab8ca5cd8d55c2e4627eb9a61dfb2506ff (patch) | |
tree | 90c8f7c0c754e3a20dadc7296374bed940f005c6 /lib/jobs/downloadfilejob.cpp | |
parent | c27916e7f96860659c5cfd7d311f6b10db3d592f (diff) | |
parent | af0f7e3ae58c1f28baa9fe1385d70eefbacc0e8a (diff) | |
download | libquotient-3b6959ab8ca5cd8d55c2e4627eb9a61dfb2506ff.tar.gz libquotient-3b6959ab8ca5cd8d55c2e4627eb9a61dfb2506ff.zip |
Merge pull request #348 from quotient-im/kitsune-better-basejob
Better BaseJob
Diffstat (limited to 'lib/jobs/downloadfilejob.cpp')
-rw-r--r-- | lib/jobs/downloadfilejob.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/jobs/downloadfilejob.cpp b/lib/jobs/downloadfilejob.cpp index 3a03efde..4e997326 100644 --- a/lib/jobs/downloadfilejob.cpp +++ b/lib/jobs/downloadfilejob.cpp @@ -39,7 +39,7 @@ QString DownloadFileJob::targetFileName() const return (d->targetFile ? d->targetFile : d->tempFile)->fileName(); } -void DownloadFileJob::beforeStart(const ConnectionData*) +void DownloadFileJob::doPrepare() { if (d->targetFile && !d->targetFile->isReadable() && !d->targetFile->open(QIODevice::WriteOnly)) { @@ -57,7 +57,7 @@ void DownloadFileJob::beforeStart(const ConnectionData*) qCDebug(JOBS) << "Downloading to" << d->tempFile->fileName(); } -void DownloadFileJob::afterStart(const ConnectionData*, QNetworkReply* reply) +void DownloadFileJob::onSentRequest(QNetworkReply* reply) { connect(reply, &QNetworkReply::metaDataChanged, this, [this, reply] { if (!status().good()) |