summaryrefslogtreecommitdiffstats
path: root/qt-mobile
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-12-04 20:39:12 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-12-04 20:39:12 -0800
commit091d099368039b5445e6c40e5dc6348e4a9cc9d1 (patch)
treee4f8cd7eba98dafb0c6ff86c3c8754446e1fde91 /qt-mobile
parentfd78f8dc1ae3e64c7e861957d3207923f8df4714 (diff)
downloadsubsurface-091d099368039b5445e6c40e5dc6348e4a9cc9d1.tar.gz
QML-UI correct cut and paste error
Stupidly the wrong functions were connected to the signals. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile')
-rw-r--r--qt-mobile/qmlmanager.cpp5
1 files 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()