summaryrefslogtreecommitdiffstats
path: root/qt-ui/models.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/models.cpp')
-rw-r--r--qt-ui/models.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp
index 0199c9989..ab501a2bd 100644
--- a/qt-ui/models.cpp
+++ b/qt-ui/models.cpp
@@ -111,11 +111,8 @@ QVariant CylindersModel::data(const QModelIndex& index, int role) const
ret = QString(cyl->type.description);
break;
case SIZE:
- // we can't use get_volume_string because the idiotic imperial tank
- // sizes take working pressure into account...
- if (cyl->type.size.mliter) {
- ret = get_volume_string(cyl->type.size, TRUE);
- }
+ if (cyl->type.size.mliter)
+ ret = get_volume_string(cyl->type.size, TRUE, cyl->type.workingpressure.mbar);
break;
case WORKINGPRESS:
if (cyl->type.workingpressure.mbar)