|
@@ -122,7 +122,7 @@ void CDownloadManager::downloadFinished(QNetworkReply * reply)
|
|
}
|
|
}
|
|
|
|
|
|
if(downloadComplete)
|
|
if(downloadComplete)
|
|
- finished(successful, failed, encounteredErrors);
|
|
|
|
|
|
+ Q_EMIT finished(successful, failed, encounteredErrors);
|
|
|
|
|
|
file.reply->deleteLater();
|
|
file.reply->deleteLater();
|
|
file.reply = nullptr;
|
|
file.reply = nullptr;
|
|
@@ -149,7 +149,7 @@ void CDownloadManager::downloadProgressChanged(qint64 bytesReceived, qint64 byte
|
|
if(received > total)
|
|
if(received > total)
|
|
total = received;
|
|
total = received;
|
|
|
|
|
|
- downloadProgress(received, total);
|
|
|
|
|
|
+ Q_EMIT downloadProgress(received, total);
|
|
}
|
|
}
|
|
|
|
|
|
bool CDownloadManager::downloadInProgress(const QUrl & url) const
|
|
bool CDownloadManager::downloadInProgress(const QUrl & url) const
|