diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-09-25 10:34:30 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-09-25 10:34:30 -0700 |
commit | 9b4abca9f49bea9ce1c71bc34a976131bceb8584 (patch) | |
tree | c62f0e5d45c919de4dafbcb7b81ab13cf8903cb7 /core | |
parent | c907efb22ee6fc22ae1385b5b6896c86bde9c099 (diff) | |
download | subsurface-9b4abca9f49bea9ce1c71bc34a976131bceb8584.tar.gz |
Make sure we remember the dive computer vendor and model
Preferences work best if you not only write them, but read them again as
well.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core')
-rw-r--r-- | core/subsurface-qt/SettingsObjectWrapper.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/subsurface-qt/SettingsObjectWrapper.cpp b/core/subsurface-qt/SettingsObjectWrapper.cpp index 0e993d39a..70d02f959 100644 --- a/core/subsurface-qt/SettingsObjectWrapper.cpp +++ b/core/subsurface-qt/SettingsObjectWrapper.cpp @@ -2264,6 +2264,13 @@ void SettingsObjectWrapper::load() prefs.decosac = s.value("decosac", prefs.decosac).toInt(); s.endGroup(); + s.beginGroup("DiveComputer"); + GET_TXT("dive_computer_vendor",dive_computer.vendor); + GET_TXT("dive_computer_product", dive_computer.product); + GET_TXT("dive_computer_device", dive_computer.device); + GET_INT("dive_computer_download_mode", dive_computer.download_mode); + s.endGroup(); + s.beginGroup("UpdateManager"); prefs.update_manager.dont_check_exists = s.contains("DontCheckForUpdates"); prefs.update_manager.dont_check_for_updates = s.value("DontCheckForUpdates").toBool(); |