diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-07-15 08:17:05 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-07-15 08:17:05 -0700 |
commit | 7f49ba745c195cc7d60bdd0aa5284d9ef7ba0ead (patch) | |
tree | 028f52b16e39938bb419f413d4bdb5eaa9788a0d /mobile-widgets/qmlmanager.cpp | |
parent | 8f61dfe8123105e052ce4cab0ccedf425cd35928 (diff) | |
download | subsurface-7f49ba745c195cc7d60bdd0aa5284d9ef7ba0ead.tar.gz |
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 <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qmlmanager.cpp')
-rw-r--r-- | mobile-widgets/qmlmanager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |