From 97b770b837d53039cdebc20957b62b75840d629b Mon Sep 17 00:00:00 2001 From: Miika Turkia Date: Mon, 24 Jul 2017 10:42:44 +0300 Subject: Error message on mobile cloud credentials Display proper error message when cloud credentials are incorrect. See #481 Signed-off-by: Miika Turkia --- mobile-widgets/qmlmanager.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index eec2c00ac..cc9b1356d 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -372,7 +372,12 @@ void QMLManager::checkCredentialsAndExecute(execute_function_type execute) } myTimer.stop(); setCloudPin(""); - if (prefs.cloud_verification_status != CS_VERIFIED) { + if (prefs.cloud_verification_status == CS_INCORRECT_USER_PASSWD) { + appendTextToLog(QStringLiteral("Incorrect cloud credentials")); + setStartPageText(RED_FONT + tr("Incorrect cloud credentials") + END_FONT); + revertToNoCloudIfNeeded(); + return; + } else if (prefs.cloud_verification_status != CS_VERIFIED) { // here we need to enter the PIN appendTextToLog(QStringLiteral("Need to verify the email address - enter PIN in desktop app")); setStartPageText(RED_FONT + tr("Cannot connect to cloud storage - cloud account not verified") + END_FONT); -- cgit v1.2.3-70-g09d2