summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-29 12:05:21 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-29 12:05:21 -0800
commitff5fa70a88d2ac0c424a1f1a994837ebe7e27d9d (patch)
treea226397bac03cb6928d761a96c23a32d11593dee /qt-ui
parentd936c55a015789f61f7e93426b11218ebb4312af (diff)
downloadsubsurface-ff5fa70a88d2ac0c424a1f1a994837ebe7e27d9d.tar.gz
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
Diffstat (limited to 'qt-ui')
-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 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);
}