1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

add Q_EMIT to signals

This commit is contained in:
Andrey Filipenkov
2025-08-19 18:27:36 +03:00
parent 97b7a57c59
commit 1a7bf57cb3

View File

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