From 9b4abca9f49bea9ce1c71bc34a976131bceb8584 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 25 Sep 2016 10:34:30 -0700 Subject: 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 --- core/subsurface-qt/SettingsObjectWrapper.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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(); -- cgit v1.2.3-70-g09d2