summaryrefslogtreecommitdiffstats
path: root/qt-ui/maintab.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r--qt-ui/maintab.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index edbd7d06d..f53a70e6e 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -432,8 +432,8 @@ void MainTab::updateDiveInfo(bool clear)
ui.LocationLabel->setText(tr("Location"));
ui.NotesLabel->setText(tr("Notes"));
ui.equipmentTab->setEnabled(true);
- cylindersModel->setDive(&displayed_dive);
- weightModel->setDive(&displayed_dive);
+ cylindersModel->updateDive();
+ weightModel->updateDive();
taglist_get_tagstring(displayed_dive.tag_list, buf, 1024);
ui.tagWidget->setText(QString(buf));
}
@@ -828,8 +828,8 @@ void MainTab::rejectChanges()
}
if (selected_dive >= 0) {
copy_dive(current_dive, &displayed_dive);
- cylindersModel->setDive(&displayed_dive);
- weightModel->setDive(&displayed_dive);
+ cylindersModel->updateDive();
+ weightModel->updateDive();
} else {
cylindersModel->clear();
weightModel->clear();