summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-11-17 10:45:14 +0000
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-11-17 10:45:14 +0000
commit44a154f7da0a15f677a134c2eb5c6dc4973c9109 (patch)
tree120894488f2fa50639a2a2a13acaf606a83102bf /qt-ui
parent7196176fa02d80f1690d5d486619c24a1e57a0c4 (diff)
downloadsubsurface-44a154f7da0a15f677a134c2eb5c6dc4973c9109.tar.gz
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>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/maintab.cpp2
1 files changed, 2 insertions, 0 deletions
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;
}
}
}