From 44a154f7da0a15f677a134c2eb5c6dc4973c9109 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 17 Nov 2014 10:45:14 +0000 Subject: 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 --- qt-ui/maintab.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qt-ui') diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index 8ebf1504c..3cf0a063d 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -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; } } } -- cgit v1.2.3-70-g09d2