From 55582cf5d4b191c524bee694bfcc9e9b6694f214 Mon Sep 17 00:00:00 2001 From: Joakim Bygdell Date: Tue, 10 Mar 2015 19:15:41 +0100 Subject: Allow removal of manually added unused cylinders Fixes #832 Signed-off-by: Joakim Bygdell Signed-off-by: Dirk Hohndel --- qt-ui/models.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-ui/models.cpp') diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp index bac9b4df0..6376bb82a 100644 --- a/qt-ui/models.cpp +++ b/qt-ui/models.cpp @@ -405,7 +405,7 @@ void CylindersModel::remove(const QModelIndex &index) ((DivePlannerPointsModel::instance()->currentMode() != DivePlannerPointsModel::NOTHING && DivePlannerPointsModel::instance()->tankInUse(cyl->gasmix)) || (DivePlannerPointsModel::instance()->currentMode() == DivePlannerPointsModel::NOTHING && - (cyl->manually_added || is_cylinder_used(&displayed_dive, index.row()))))) { + is_cylinder_used(&displayed_dive, index.row())))) { QMessageBox::warning(MainWindow::instance(), TITLE_OR_TEXT( tr("Cylinder cannot be removed"), tr("This gas is in use. Only cylinders that are not used in the dive can be removed.")), -- cgit v1.2.3-70-g09d2