Refactor ImgurUpload
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
1c3402d081
commit
25ffc4c4b0
8 changed files with 224 additions and 237 deletions
|
@ -111,6 +111,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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue