Merge pull request #1290 from Trial97/refactor/NetActions

Refactor ImgurUpload
This commit is contained in:
Alexandru Ionut Tripon 2023-10-21 12:32:16 +01:00 committed by GitHub
commit 2c4af7e793
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 225 additions and 174 deletions

View file

@ -112,6 +112,8 @@ void NetRequest::executeTask()
m_last_progress_bytes = 0;
QNetworkReply* rep = getReply(request);
if (rep == nullptr) // it failed
return;
m_reply.reset(rep);
connect(rep, &QNetworkReply::downloadProgress, this, &NetRequest::downloadProgress);
connect(rep, &QNetworkReply::finished, this, &NetRequest::downloadFinished);