From 091d099368039b5445e6c40e5dc6348e4a9cc9d1 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 4 Dec 2015 20:39:12 -0800 Subject: [PATCH] QML-UI correct cut and paste error Stupidly the wrong functions were connected to the signals. Signed-off-by: Dirk Hohndel --- qt-mobile/qmlmanager.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/qt-mobile/qmlmanager.cpp b/qt-mobile/qmlmanager.cpp index c244832da..9f9bdc772 100644 --- a/qt-mobile/qmlmanager.cpp +++ b/qt-mobile/qmlmanager.cpp @@ -111,8 +111,8 @@ void QMLManager::checkCredentialsAndExecute(execute_function_type execute) appendTextToLog("Have credentials, let's see if they are valid"); if (!mgr) mgr = new QNetworkAccessManager(this); - connect(mgr, &QNetworkAccessManager::authenticationRequired, this, execute, Qt::UniqueConnection); - connect(mgr, &QNetworkAccessManager::finished, this, &QMLManager::retrieveUserid, Qt::UniqueConnection); + connect(mgr, &QNetworkAccessManager::authenticationRequired, this, &QMLManager::provideAuth, Qt::UniqueConnection); + connect(mgr, &QNetworkAccessManager::finished, this, execute, Qt::UniqueConnection); QUrl url(CLOUDREDIRECTURL); request = QNetworkRequest(url); 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, &QNetworkReply::sslErrors, this, &QMLManager::handleSslErrors); } - } void QMLManager::tryRetrieveDataFromBackend()