summaryrefslogtreecommitdiffstats
path: root/qt-ui/models.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-01 15:25:19 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-01 15:40:46 -0700
commitfe773241eea51036b25815302fc676eafbcac85a (patch)
tree9bbf7ff480508a90af7ddfb266517de38107be98 /qt-ui/models.cpp
parent2bf46381a82fd6ae514b014b8d32954693bca346 (diff)
downloadsubsurface-fe773241eea51036b25815302fc676eafbcac85a.tar.gz
Next step to using gasmix instead of o2/he
This changes the divedatapoints and functions that deal with them. It changes plan_add_segment(), create_dp(), gasToStr(), and tankInUse() to consume gasmix instead of o2/he. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/models.cpp')
-rw-r--r--qt-ui/models.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp
index 340276059..9b92f8197 100644
--- a/qt-ui/models.cpp
+++ b/qt-ui/models.cpp
@@ -356,7 +356,7 @@ void CylindersModel::remove(const QModelIndex &index)
}
cylinder_t *cyl = &current->cylinder[index.row()];
if ((DivePlannerPointsModel::instance()->currentMode() != DivePlannerPointsModel::NOTHING &&
- DivePlannerPointsModel::instance()->tankInUse(cyl->gasmix.o2.permille, cyl->gasmix.he.permille)) ||
+ DivePlannerPointsModel::instance()->tankInUse(cyl->gasmix)) ||
(DivePlannerPointsModel::instance()->currentMode() == DivePlannerPointsModel::NOTHING &&
(cyl->manually_added || (current_dive && cylinder_is_used(current_dive, cyl))))) {
QMessageBox::warning(MainWindow::instance(), TITLE_OR_TEXT(