mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Copy all cylinders when (re)planning a dive
This changes the code so we include all the cylinders from a previous dive when we re-plain a dive. Otherwise we would have a hole in the cylinders table when we plan a dive based on a dive where we have unused cylinders, and it makes more sense to copy all of them rather than not. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
236b1d08ed
commit
8b371cf8c6
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ void DivePlannerPointsModel::setupCylinders()
|
|||
if (mode == PLAN && current_dive) {
|
||||
// take the used cylinders from the selected dive as starting point
|
||||
CylindersModel::instance()->copyFromDive(current_dive);
|
||||
copy_cylinders(current_dive, &displayed_dive, true);
|
||||
copy_cylinders(current_dive, &displayed_dive, false);
|
||||
reset_cylinders(&displayed_dive, true);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue