diff options
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r-- | qt-ui/maintab.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index 81187dcf8..82e5d2ee5 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -601,7 +601,11 @@ void MainTab::acceptChanges() mark_divelist_changed(TRUE); Q_FOREACH (dive *d, notesBackup.keys()) { for (int i = 0; i < MAX_CYLINDERS; i++) { - d->cylinder[i] = multiEditEquipmentPlaceholder.cylinder[i]; + if (notesBackup.keys().count() > 1) + // only copy the cylinder type, none of the other values + d->cylinder[i].type = multiEditEquipmentPlaceholder.cylinder[i].type; + else + d->cylinder[i] = multiEditEquipmentPlaceholder.cylinder[i]; } } } |