mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 00:13:24 +00:00
Preferences: more missing /
subsurface_webservice_uid ends up in the wrong group due missing /. Notice that this does not fix the issues I mentioned in #1648. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
parent
56a77f0fa3
commit
2635673c3a
1 changed files with 3 additions and 3 deletions
|
@ -103,14 +103,14 @@ void qPrefCloudStorage::disk_userid(bool doSync)
|
|||
{
|
||||
if (doSync) {
|
||||
// always save in new position (part of cloud storage group)
|
||||
qPrefPrivate::propSetValue(group + "subsurface_webservice_uid", prefs.userid, default_prefs.userid);
|
||||
qPrefPrivate::propSetValue(group + "/subsurface_webservice_uid", prefs.userid, default_prefs.userid);
|
||||
} else {
|
||||
//WARNING: UserId was stored outside of any group.
|
||||
// try to read from new location, if it fails read from old location
|
||||
prefs.userid = copy_qstring(qPrefPrivate::propValue(group + "subsurface_webservice_uid", "NoUserIdHere").toString());
|
||||
prefs.userid = copy_qstring(qPrefPrivate::propValue(group + "/subsurface_webservice_uid", "NoUserIdHere").toString());
|
||||
if (QString(prefs.userid) == "NoUserIdHere") {
|
||||
const QString group = QStringLiteral("");
|
||||
prefs.userid = copy_qstring(qPrefPrivate::propValue(group + "subsurface_webservice_uid", default_prefs.userid).toString());
|
||||
prefs.userid = copy_qstring(qPrefPrivate::propValue(group + "/subsurface_webservice_uid", default_prefs.userid).toString());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue