summaryrefslogtreecommitdiffstats
path: root/divecomputer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'divecomputer.cpp')
-rw-r--r--divecomputer.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/divecomputer.cpp b/divecomputer.cpp
index ac43bd00b..b45b74a44 100644
--- a/divecomputer.cpp
+++ b/divecomputer.cpp
@@ -6,6 +6,7 @@
const char *default_dive_computer_vendor;
const char *default_dive_computer_product;
const char *default_dive_computer_device;
+int default_dive_computer_download_mode;
DiveComputerList dcList;
DiveComputerList::DiveComputerList()
@@ -172,6 +173,16 @@ void set_default_dive_computer_device(const char *name)
s.endGroup();
}
+void set_default_dive_computer_download_mode(int download_mode)
+{
+ QSettings s;
+
+ default_dive_computer_download_mode = download_mode;
+ s.beginGroup("DiveComputer");
+ s.setValue("dive_computer_download_mode", download_mode);
+ s.endGroup();
+}
+
extern "C" void set_dc_nickname(struct dive *dive)
{
if (!dive)