mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
2db7d5cc23
commit
621d00d891
1 changed files with 0 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue