summaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-01-05 11:13:14 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-01-06 07:00:34 +0900
commitc03731b2207a4bb1461fbe782c1c7bc1b9cd340e (patch)
tree384c107b47ab99eb9fc6754f6ed6ddb3da332cc1 /desktop-widgets
parenteac87f64817568cf38c76169fc896450f1131b37 (diff)
downloadsubsurface-c03731b2207a4bb1461fbe782c1c7bc1b9cd340e.tar.gz
desktop UI: use salinity of current DC, not first DC
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/tab-widgets/TabDiveInformation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop-widgets/tab-widgets/TabDiveInformation.cpp b/desktop-widgets/tab-widgets/TabDiveInformation.cpp
index d0b66fd4d..b1e3fb226 100644
--- a/desktop-widgets/tab-widgets/TabDiveInformation.cpp
+++ b/desktop-widgets/tab-widgets/TabDiveInformation.cpp
@@ -197,7 +197,7 @@ void TabDiveInformation::checkDcSalinityOverWritten()
{
if (!current_dive)
return;
- int dc_value = current_dive->dc.salinity;
+ int dc_value = current_dc->salinity;
int user_value = current_dive->user_salinity;
bool show_indicator = false;
if (user_value != dc_value)
@@ -272,7 +272,7 @@ void TabDiveInformation::updateData()
void TabDiveInformation::on_waterTypeCombo_activated(int index) {
Q_UNUSED(index)
int combobox_salinity = 0;
- int dc_salinity = current_dive->dc.salinity;
+ int dc_salinity = current_dc->salinity;
switch(ui->waterTypeCombo->currentIndex()) {
case FRESHWATER:
combobox_salinity = FRESHWATER_SALINITY;