mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 23:03:23 +00:00
QML UI: make sure nothing is lost when changing cloud credentials
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
9ca0f7334b
commit
f536da0ee3
1 changed files with 3 additions and 0 deletions
|
@ -253,6 +253,9 @@ void QMLManager::saveCloudCredentials()
|
|||
if (cloudUserName().isEmpty() || cloudPassword().isEmpty()) {
|
||||
setStartPageText(RED_FONT + tr("Please enter valid cloud credentials.") + END_FONT);
|
||||
} else if (cloudCredentialsChanged) {
|
||||
// let's make sure there are no unsaved changes
|
||||
saveChangesLocal();
|
||||
|
||||
free(prefs.userid);
|
||||
prefs.userid = NULL;
|
||||
syncLoadFromCloud();
|
||||
|
|
Loading…
Add table
Reference in a new issue