fix unix build buster

This commit is contained in:
Brad Hefta-Gaub 2016-05-10 15:00:50 -07:00
parent 7958020f4e
commit 0eb2388f69

View file

@ -636,9 +636,8 @@ void AddressManager::goHomeOrElsewhere(QString elsewhere, LookupTrigger trigger)
sandboxStatus.setHeader(QNetworkRequest::UserAgentHeader, HIGH_FIDELITY_USER_AGENT);
QNetworkReply* reply = networkAccessManager.get(sandboxStatus);
connect(reply, &QNetworkReply::finished, this, [this, elsewhere, trigger]() {
QNetworkReply* sender = qobject_cast<QNetworkReply*>(QObject::sender());
auto statusData = sender->readAll();
connect(reply, &QNetworkReply::finished, this, [this, elsewhere, reply, trigger]() {
auto statusData = reply->readAll();
auto statusJson = QJsonDocument::fromJson(statusData);
if (!statusJson.isEmpty()) {
auto statusObject = statusJson.object();