mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 06:30:26 +00:00
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>
This commit is contained in:
parent
b81647bd8a
commit
55582cf5d4
1 changed files with 1 additions and 1 deletions
|
@ -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.")),
|
||||
|
|
Loading…
Reference in a new issue