networking: fix build

This commit is contained in:
tobtoht 2023-07-11 02:18:06 +02:00
parent 04c5427acb
commit 04c1e22570
No known key found for this signature in database
GPG key ID: E45B10DD027D2472
2 changed files with 3 additions and 3 deletions

View file

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

View file

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