aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/maintab.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r--qt-ui/maintab.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index cc56a58c6..4512005f2 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -461,8 +461,8 @@ void MainTab::acceptChanges()
if (weightModel->changed) {
mark_divelist_changed(TRUE);
Q_FOREACH (dive *d, notesBackup.keys()) {
- for (int i = 0; i < MAX_CYLINDERS; i++) {
- d->cylinder[i] = multiEditEquipmentPlaceholder.cylinder[i];
+ for (int i = 0; i < MAX_WEIGHTSYSTEMS; i++) {
+ d->weightsystem[i] = multiEditEquipmentPlaceholder.weightsystem[i];
}
}
}