summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/tab-widgets/TabDiveInformation.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-01-04 16:06:28 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-01-06 07:00:34 +0900
commit1e4cc49f83c4af4394a0aa7deca1affa99fd64fa (patch)
tree78dc9534f5e91e6aa280038cdd6221cb75112efe /desktop-widgets/tab-widgets/TabDiveInformation.h
parentc0bb04994bd31a1e1c7621cdd34ec45e66cec220 (diff)
downloadsubsurface-1e4cc49f83c4af4394a0aa7deca1affa99fd64fa.tar.gz
desktop UI: treat an unknown salinity as that
We were royally confused when we didn't know the salinity value (e.g., if the dive computer didn't provide that information). We somehow treated this as the same as wanting to use the salinity information in the dive computer. Which makes no sense. While cleaning this up, this also adds the textual representations of the water types as a string list that corresponds to the enum values that we use - this way it's easier to stay consistent. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets/tab-widgets/TabDiveInformation.h')
-rw-r--r--desktop-widgets/tab-widgets/TabDiveInformation.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/desktop-widgets/tab-widgets/TabDiveInformation.h b/desktop-widgets/tab-widgets/TabDiveInformation.h
index 008d40f61..374ad4784 100644
--- a/desktop-widgets/tab-widgets/TabDiveInformation.h
+++ b/desktop-widgets/tab-widgets/TabDiveInformation.h
@@ -43,6 +43,7 @@ private:
void divesEdited(int);
void closeWarning();
void showCurrentWidget(bool show, int position);
+ QStringList waterTypes;
};
#endif