mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-17 15:21:30 +02:00
networking: fix build
This commit is contained in:
@@ -88,7 +88,7 @@ void UpdateDialog::onDownloadClicked() {
|
||||
|
||||
Networking network{this};
|
||||
|
||||
m_reply = network.get(m_updater->downloadUrl);
|
||||
m_reply = network.get(this, m_updater->downloadUrl);
|
||||
connect(m_reply, &QNetworkReply::downloadProgress, this, &UpdateDialog::onDownloadProgress);
|
||||
connect(m_reply, &QNetworkReply::finished, this, &UpdateDialog::onDownloadFinished);
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ Updater::Updater(QObject *parent) :
|
||||
|
||||
void Updater::checkForUpdates() {
|
||||
Networking network{this};
|
||||
QNetworkReply *reply = network.getJson(QString("%1/updates.json").arg(this->getWebsiteUrl()));
|
||||
QNetworkReply *reply = network.getJson(this, QString("%1/updates.json").arg(this->getWebsiteUrl()));
|
||||
if (!reply) {
|
||||
emit updateCheckFailed("offline mode enabled");
|
||||
return;
|
||||
@@ -88,7 +88,7 @@ void Updater::wsUpdatesReceived(const QJsonObject &updates) {
|
||||
qDebug() << hashesUrl;
|
||||
|
||||
Networking network{this};
|
||||
QNetworkReply *reply = network.get(hashesUrl);
|
||||
QNetworkReply *reply = network.get(this, hashesUrl);
|
||||
|
||||
connect(reply, &QNetworkReply::finished, this, std::bind(&Updater::onSignedHashesReceived, this, reply, platformTag, newVersion));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user