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.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index bb5169e52..848f068a2 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -203,6 +203,7 @@ void MainTab::updateDiveInfo(int dive)
ui->longestAllText->setText(get_time_string(stats_selection.longest_time.seconds, 0));
ui->shortestAllText->setText(get_time_string(stats_selection.shortest_time.seconds, 0));
cylindersModel->setDive(d);
+ weightModel->setDive(d);
} else {
/* make the fields read-only */
ui->location->setReadOnly(true);
@@ -228,6 +229,7 @@ void MainTab::updateDiveInfo(int dive)
ui->gasUsedText->clear();
ui->airPressureText->clear();
cylindersModel->clear();
+ weightModel->clear();
}
/* statisticsTab*/
/* we can access the stats_selection struct, but how do we ensure the relevant dives are selected