summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joakim Bygdell <j.bygdell@gmail.com>2015-03-10 19:15:41 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-03-10 11:41:52 -0700
commit55582cf5d4b191c524bee694bfcc9e9b6694f214 (patch)
treebaf0f81d12a4781bf5791d40d8ba3c3c3645609d
parentb81647bd8a532c6a9c7ac5df0c9051174f32df4f (diff)
downloadsubsurface-55582cf5d4b191c524bee694bfcc9e9b6694f214.tar.gz
Allow removal of manually added unused cylinders
Fixes #832 Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-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 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.")),