diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-03-22 16:01:34 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-03-22 12:01:09 -0700 |
commit | 621d00d8919d9ca07082fdf3dfb8118a1345b29d (patch) | |
tree | f1ad0f65c99273406e3e0ca1ba2a645fc89e4df1 | |
parent | 2db7d5cc23658b59e307d825ca031639f0bb76cc (diff) | |
download | subsurface-621d00d8919d9ca07082fdf3dfb8118a1345b29d.tar.gz |
cleanup: don't call uiLanguage() in qPref::loadSync()
uiLanguage() initializes the language fields from the preferences
values. It is unclear why this function is called in qPref::loadSync()
*before* the fields are loaded from disk. It can only initialize to
the default values anyway. After qPref::loadSync() uiLanguage()
is called again so that everything can be initialized with the
correct perferences values.
Remove the first call. If things break, let's fix them in a sensible
way.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
-rw-r--r-- | core/settings/qPref.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/core/settings/qPref.cpp b/core/settings/qPref.cpp index 522a74c6d..4254a2dac 100644 --- a/core/settings/qPref.cpp +++ b/core/settings/qPref.cpp @@ -23,9 +23,6 @@ void qPref::loadSync(bool doSync) { - if (!doSync) - uiLanguage(NULL); - // the following calls, ensures qPref* is instanciated, registred and // that properties are loaded qPrefCloudStorage::loadSync(doSync); |