mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
QML UI: don't even try to connect if email or password are empty
This way the user gets better messages on the screen. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
9367613a77
commit
e5e5ab7480
1 changed files with 3 additions and 1 deletions
|
@ -160,7 +160,9 @@ void QMLManager::saveCloudCredentials()
|
||||||
prefs.cloud_storage_password = strdup(qPrintable(cloudPassword()));
|
prefs.cloud_storage_password = strdup(qPrintable(cloudPassword()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (cloudCredentialsChanged) {
|
if (cloudUserName().isEmpty() || cloudPassword().isEmpty()) {
|
||||||
|
setStartPageText(tr("Please enter valid cloud credentials."));
|
||||||
|
} else if (cloudCredentialsChanged) {
|
||||||
free(prefs.userid);
|
free(prefs.userid);
|
||||||
prefs.userid = NULL;
|
prefs.userid = NULL;
|
||||||
syncLoadFromCloud();
|
syncLoadFromCloud();
|
||||||
|
|
Loading…
Reference in a new issue