When editing cylinders, copy all relevant data
Maybe it would be better to just copy the whole structure and then clear the things we don't want to copy? This seems fragile. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
7196176fa0
commit
44a154f7da
@ -764,6 +764,8 @@ void MainTab::acceptChanges()
|
||||
mydive->cylinder[i].type.size = displayed_dive.cylinder[i].type.size;
|
||||
mydive->cylinder[i].type.workingpressure = displayed_dive.cylinder[i].type.workingpressure;
|
||||
mydive->cylinder[i].gasmix = displayed_dive.cylinder[i].gasmix;
|
||||
mydive->cylinder[i].cylinder_use = displayed_dive.cylinder[i].cylinder_use;
|
||||
mydive->cylinder[i].depth = displayed_dive.cylinder[i].depth;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user