From aa76d3592361ec7b07a8fc15fd466bcd392629ec Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 13 Nov 2013 21:44:18 +0900 Subject: Instead of a "Cylinder for planning" use a default cylinder Right now hardcoded to AL80. This way in the future we'll have a volume of gas that's available. And this makes much more sense then a random string in the description field. Signed-off-by: Dirk Hohndel --- qt-ui/diveplanner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-ui') diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp index bdecf24ad..45360c85c 100644 --- a/qt-ui/diveplanner.cpp +++ b/qt-ui/diveplanner.cpp @@ -1138,7 +1138,7 @@ bool DivePlannerPointsModel::addGas(int o2, int he) for (int i = 0; i < MAX_CYLINDERS; i++) { if (cylinder_nodata(cyl)) { - cyl->type.description = strdup("Cylinder for planning"); + fill_default_cylinder(cyl); cyl->gasmix.o2.permille = o2; cyl->gasmix.he.permille = he; CylindersModel::instance()->setDive(stagingDive); -- cgit v1.2.3-70-g09d2