QML-UI correct cut and paste error

Stupidly the wrong functions were connected to the signals.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-12-04 20:39:12 -08:00
parent fd78f8dc1a
commit 091d099368

View file

@ -111,8 +111,8 @@ void QMLManager::checkCredentialsAndExecute(execute_function_type execute)
appendTextToLog("Have credentials, let's see if they are valid"); appendTextToLog("Have credentials, let's see if they are valid");
if (!mgr) if (!mgr)
mgr = new QNetworkAccessManager(this); mgr = new QNetworkAccessManager(this);
connect(mgr, &QNetworkAccessManager::authenticationRequired, this, execute, Qt::UniqueConnection); connect(mgr, &QNetworkAccessManager::authenticationRequired, this, &QMLManager::provideAuth, Qt::UniqueConnection);
connect(mgr, &QNetworkAccessManager::finished, this, &QMLManager::retrieveUserid, Qt::UniqueConnection); connect(mgr, &QNetworkAccessManager::finished, this, execute, Qt::UniqueConnection);
QUrl url(CLOUDREDIRECTURL); QUrl url(CLOUDREDIRECTURL);
request = QNetworkRequest(url); request = QNetworkRequest(url);
request.setRawHeader("User-Agent", getUserAgent().toUtf8()); request.setRawHeader("User-Agent", getUserAgent().toUtf8());
@ -121,7 +121,6 @@ void QMLManager::checkCredentialsAndExecute(execute_function_type execute)
connect(reply, SIGNAL(error(QNetworkReply::NetworkError)), this, SLOT(handleError(QNetworkReply::NetworkError))); connect(reply, SIGNAL(error(QNetworkReply::NetworkError)), this, SLOT(handleError(QNetworkReply::NetworkError)));
connect(reply, &QNetworkReply::sslErrors, this, &QMLManager::handleSslErrors); connect(reply, &QNetworkReply::sslErrors, this, &QMLManager::handleSslErrors);
} }
} }
void QMLManager::tryRetrieveDataFromBackend() void QMLManager::tryRetrieveDataFromBackend()