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);
}
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;
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));
}