mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
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:
parent
fd78f8dc1a
commit
091d099368
1 changed files with 2 additions and 3 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue