diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-01-16 03:30:57 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-01-16 03:30:57 -0800 |
commit | 7f7c00824706be24786767599cdde9b91e5cf9c6 (patch) | |
tree | 473ee09c3040bbab281ea2e769dfd808150a0be0 /qt-models/cylindermodel.cpp | |
parent | a8e8d56ec016fc19727e45cd7208bb55ca4821af (diff) | |
download | subsurface-7f7c00824706be24786767599cdde9b91e5cf9c6.tar.gz |
Revert "Show both the nominal and "real" size for an imperial cylinder"
This reverts commit adaeb506b7a1485cab741f12450abeb76e109276.
commit a8e8d56ec016 ("Tweak cylinder equipment tooltips") does a much
better job allowing the user to know the true volume of the cylinder
(given the gas entered) and clutters the UI a lot less.
Diffstat (limited to 'qt-models/cylindermodel.cpp')
-rw-r--r-- | qt-models/cylindermodel.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/qt-models/cylindermodel.cpp b/qt-models/cylindermodel.cpp index 530ea6356..767ba7621 100644 --- a/qt-models/cylindermodel.cpp +++ b/qt-models/cylindermodel.cpp @@ -38,10 +38,9 @@ static QString get_cylinder_string(cylinder_t *cyl) // liters: if we don't have a working pressure, we cannot // convert the cylinder size to cuft. if (wp.mbar && prefs.units.volume == units::CUFT) { - double real_value = ml_to_cuft(gas_volume(cyl, wp)); value = ml_to_cuft(ml) * bar_to_atm(wp.mbar / 1000.0); decimals = (value > 20.0) ? 0 : (value > 2.0) ? 1 : 2; - unit = QString("(%1)%2").arg(real_value, 0, 'f', 0).arg(CylindersModel::tr("cuft")); + unit = CylindersModel::tr("cuft"); } else { value = ml / 1000.0; decimals = 1; |