summaryrefslogtreecommitdiffstats
path: root/qt-mobile/qmlmanager.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-12-19 16:20:20 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-12-19 16:20:20 -0800
commit41c59c1c8d0d05ad8169aed9a039259d5a707570 (patch)
treeeb4eb17f677ec3d495594624ecd678a2bc13fb42 /qt-mobile/qmlmanager.cpp
parentb9cd6bf38e300c6bfca091bc434f732314a884ec (diff)
downloadsubsurface-41c59c1c8d0d05ad8169aed9a039259d5a707570.tar.gz
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>
Diffstat (limited to 'qt-mobile/qmlmanager.cpp')
-rw-r--r--qt-mobile/qmlmanager.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/qt-mobile/qmlmanager.cpp b/qt-mobile/qmlmanager.cpp
index d852ad333..f922b9b51 100644
--- a/qt-mobile/qmlmanager.cpp
+++ b/qt-mobile/qmlmanager.cpp
@@ -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);