mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
QML-UI: more log message when retrieving web user id
At least one tester cannot retrieve their web user id. This should help us collect more data and figure out why this fails. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
b9cd6bf38e
commit
41c59c1c8d
1 changed files with 7 additions and 1 deletions
|
@ -196,8 +196,14 @@ void QMLManager::retrieveUserid()
|
|||
return;
|
||||
}
|
||||
QString userid(prefs.userid);
|
||||
if (userid.isEmpty())
|
||||
if (userid.isEmpty()) {
|
||||
if (same_string(prefs.cloud_storage_email, "") || same_string(prefs.cloud_storage_password, "")) {
|
||||
appendTextToLog("cloud user name or password are empty, can't retrieve web user id");
|
||||
return;
|
||||
}
|
||||
appendTextToLog(QString("calling getUserid with user %1").arg(prefs.cloud_storage_email));
|
||||
userid = locationProvider->getUserid(prefs.cloud_storage_email, prefs.cloud_storage_password);
|
||||
}
|
||||
if (!userid.isEmpty()) {
|
||||
// overwrite the existing userid
|
||||
free(prefs.userid);
|
||||
|
|
Loading…
Add table
Reference in a new issue