From 94a549e76759285476eb170665831e2b4ba59808 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 29 Mar 2016 21:43:37 -0500 Subject: QML UI: brute force password saving This is embarrassing. I should have done this in the first place instead of trying to hack around it. Signed-off-by: Dirk Hohndel --- subsurface-core/qthelper.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'subsurface-core') diff --git a/subsurface-core/qthelper.cpp b/subsurface-core/qthelper.cpp index fae5e0130..e103b44e5 100644 --- a/subsurface-core/qthelper.cpp +++ b/subsurface-core/qthelper.cpp @@ -1480,7 +1480,12 @@ void loadPreferences() s.beginGroup("CloudStorage"); GET_TXT("email", cloud_storage_email); +#ifndef SUBSURFACE_MOBILE GET_BOOL("save_password_local", save_password_local); +#else + // always save the password in Subsurface-mobile + prefs.save_password_local = true; +#endif if (prefs.save_password_local) { // GET_TEXT macro is not a single statement GET_TXT("password", cloud_storage_password); } -- cgit v1.2.3-70-g09d2