mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +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()) {
|
if (cloudUserName().isEmpty() || cloudPassword().isEmpty()) {
|
||||||
setStartPageText(RED_FONT + tr("Please enter valid cloud credentials.") + END_FONT);
|
setStartPageText(RED_FONT + tr("Please enter valid cloud credentials.") + END_FONT);
|
||||||
} else if (cloudCredentialsChanged) {
|
} else if (cloudCredentialsChanged) {
|
||||||
|
// let's make sure there are no unsaved changes
|
||||||
|
saveChangesLocal();
|
||||||
|
|
||||||
free(prefs.userid);
|
free(prefs.userid);
|
||||||
prefs.userid = NULL;
|
prefs.userid = NULL;
|
||||||
syncLoadFromCloud();
|
syncLoadFromCloud();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue