summaryrefslogtreecommitdiffstats
path: root/qt-gui.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-08 20:51:13 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-08 21:00:56 -0700
commitbbe62f756a0c0fbfae58c40d9e1605382c0f65a6 (patch)
tree058b2fcb72bdab56ab1ddee6c4edf1c259c08021 /qt-gui.cpp
parent11380a5deb071b647e10dbd51e64340e50da801d (diff)
downloadsubsurface-bbe62f756a0c0fbfae58c40d9e1605382c0f65a6.tar.gz
Change character for liter in SAC values as well
And fix the bug that in the info overlay SAC was always given in metric values. And try to reduce the number of places in which we calculate the unit conversions... Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-gui.cpp')
-rw-r--r--qt-gui.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/qt-gui.cpp b/qt-gui.cpp
index 41b2e5f12..70acd0463 100644
--- a/qt-gui.cpp
+++ b/qt-gui.cpp
@@ -307,10 +307,9 @@ QString get_volume_string(volume_t volume, bool showunit, int mbar)
QString get_volume_unit()
{
- if (prefs.units.volume == units::LITER)
- return "l";
- else
- return "cuft";
+ const char *unit;
+ (void) get_volume_units(0, NULL, &unit);
+ return QString(unit);
}
QString get_pressure_string(pressure_t pressure, bool showunit)