summaryrefslogtreecommitdiffstats
path: root/qt-ui/maintab.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r--qt-ui/maintab.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index b3514e4f2..90a527e3a 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -552,6 +552,9 @@ void MainTab::updateDiveInfo(int dive)
}
if (!gasUsed.isEmpty())
gasUsedString.append("...");
+ volume_t o2_tot = {}, he_tot = {};
+ selected_dives_gas_parts(&o2_tot, &he_tot);
+ gasUsedString.append(QString("These gases could be\nmixed from Air and using:\nHe: %1 and O2: %2\n").arg(get_volume_string(he_tot, true)).arg(get_volume_string(o2_tot, true)));
ui.gasConsumption->setText(gasUsedString);
} else {
/* clear the fields */