mirror of
https://github.com/feather-wallet/feather.git
synced 2025-03-11 17:06:38 +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};
|
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::downloadProgress, this, &UpdateDialog::onDownloadProgress);
|
||||||
connect(m_reply, &QNetworkReply::finished, this, &UpdateDialog::onDownloadFinished);
|
connect(m_reply, &QNetworkReply::finished, this, &UpdateDialog::onDownloadFinished);
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,7 +26,7 @@ Updater::Updater(QObject *parent) :
|
||||||
|
|
||||||
void Updater::checkForUpdates() {
|
void Updater::checkForUpdates() {
|
||||||
Networking network{this};
|
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) {
|
if (!reply) {
|
||||||
emit updateCheckFailed("offline mode enabled");
|
emit updateCheckFailed("offline mode enabled");
|
||||||
return;
|
return;
|
||||||
|
@ -88,7 +88,7 @@ void Updater::wsUpdatesReceived(const QJsonObject &updates) {
|
||||||
qDebug() << hashesUrl;
|
qDebug() << hashesUrl;
|
||||||
|
|
||||||
Networking network{this};
|
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));
|
connect(reply, &QNetworkReply::finished, this, std::bind(&Updater::onSignedHashesReceived, this, reply, platformTag, newVersion));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue