From 7f49ba745c195cc7d60bdd0aa5284d9ef7ba0ead Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 15 Jul 2017 08:17:05 -0700 Subject: Fix compile errors This was fixed in my local tree but I forgot to amend the commit before pushing it out. Oops. Signed-off-by: Dirk Hohndel --- mobile-widgets/qmlmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp index 486d5ca9e..5066c589a 100644 --- a/mobile-widgets/qmlmanager.cpp +++ b/mobile-widgets/qmlmanager.cpp @@ -282,7 +282,7 @@ void QMLManager::saveCloudCredentials() QRegularExpression regExp("^[a-zA-Z0-9@.+_-]+$"); QString cloudPwd = cloudPassword(); QString cloudUser = cloudUserName(); - if (cloudPwd.isEmpty() || !reg.match(cloudPwd) || !reg.match(cloudUser) { + if (cloudPwd.isEmpty() || !regExp.match(cloudPwd).hasMatch() || !regExp.match(cloudUser).hasMatch()) { setStartPageText(RED_FONT + tr("Cloud storage email and password can only consist of letters, numbers, and '.', '-', '_', and '+'.") + END_FONT); return; } -- cgit v1.2.3-70-g09d2