mirror of
https://github.com/feather-wallet/feather.git
synced 2024-12-22 19:49:28 +00:00
networking: fix build
This commit is contained in:
parent
04c5427acb
commit
04c1e22570
2 changed files with 3 additions and 3 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue