Make sure surface air is not considered a deco gas

it creapt in through the gaschange events.

Signed-off-by: Robert C. Helling <helling@atdotde.de>
This commit is contained in:
Robert C. Helling 2019-03-26 10:35:41 +01:00 committed by Dirk Hohndel
parent 67a1981fbd
commit 30746e5d3f
2 changed files with 2 additions and 0 deletions

View file

@ -442,6 +442,7 @@ void CylindersModel::add()
fill_default_cylinder(&displayed_dive.cylinder[row]);
displayed_dive.cylinder[row].start = displayed_dive.cylinder[row].type.workingpressure;
displayed_dive.cylinder[row].manually_added = true;
displayed_dive.cylinder[row].cylinder_use = OC_GAS;
beginInsertRows(QModelIndex(), row, row);
rows++;
changed = true;