mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Use default prefs for the prefs that where missing
This patch fixes all the cases that I didn't checked for the default prefs. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
1dddf731ee
commit
5da23065d6
1 changed files with 8 additions and 8 deletions
|
@ -2284,18 +2284,18 @@ void SettingsObjectWrapper::load()
|
|||
|
||||
s.beginGroup("UpdateManager");
|
||||
prefs.update_manager.dont_check_exists = s.contains("DontCheckForUpdates");
|
||||
prefs.update_manager.dont_check_for_updates = s.value("DontCheckForUpdates").toBool();
|
||||
prefs.update_manager.last_version_used = copy_string(qPrintable(s.value("LastVersionUsed").toString()));
|
||||
GET_BOOL("DontCheckForUpdates", update_manager.dont_check_for_updates);
|
||||
GET_TXT("LastVersionUsed", update_manager.last_version_used);
|
||||
prefs.update_manager.next_check = copy_string(qPrintable(s.value("NextCheck").toDate().toString("dd/MM/yyyy")));
|
||||
s.endGroup();
|
||||
|
||||
s.beginGroup("Language");
|
||||
prefs.locale.use_system_language = s.value("UseSystemLanguage").toBool();
|
||||
prefs.locale.language = copy_string(qPrintable(s.value("UiLanguage").toString()));
|
||||
prefs.locale.lang_locale = copy_string(qPrintable(s.value("UiLangLocale").toString()));
|
||||
prefs.time_format = copy_string(qPrintable(s.value("time_format").toString()));
|
||||
prefs.date_format = copy_string(qPrintable(s.value("date_format").toString()));
|
||||
prefs.date_format_short = copy_string(qPrintable(s.value("date_format_short").toString()));
|
||||
GET_BOOL("UseSystemLanguage", locale.use_system_language);
|
||||
GET_TXT("UiLanguage", locale.language);
|
||||
GET_TXT("UiLangLocale", locale.lang_locale);
|
||||
GET_TXT("time_format", time_format);
|
||||
GET_TXT("date_format", date_format);
|
||||
GET_TXT("date_format_short", date_format_short);
|
||||
s.endGroup();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue