From ff5fa70a88d2ac0c424a1f1a994837ebe7e27d9d Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 29 Nov 2013 12:05:21 -0800 Subject: Editing air or water temperature should modify dive computer, not dive The dive fields are summary fields, the actual data needs to be in the divecomputer specific fields. Fixes #307 --- qt-ui/maintab.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qt-ui') diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index 0400aa7ed..0e1e52289 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -759,13 +759,13 @@ void MainTab::on_divemaster_textChanged(const QString& text) void MainTab::on_airtemp_textChanged(const QString& text) { - EDIT_SELECTED_DIVES( mydive->airtemp.mkelvin = parseTemperatureToMkelvin(text) ); + EDIT_SELECTED_DIVES( select_dc(&mydive->dc)->airtemp.mkelvin = parseTemperatureToMkelvin(text) ); markChangedWidget(ui.airtemp); } void MainTab::on_watertemp_textChanged(const QString& text) { - EDIT_SELECTED_DIVES( mydive->watertemp.mkelvin = parseTemperatureToMkelvin(text) ); + EDIT_SELECTED_DIVES( select_dc(&mydive->dc)->watertemp.mkelvin = parseTemperatureToMkelvin(text) ); markChangedWidget(ui.watertemp); } -- cgit v1.2.3-70-g09d2