aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets/command_edit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-widgets/command_edit.cpp')
-rw-r--r--desktop-widgets/command_edit.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/desktop-widgets/command_edit.cpp b/desktop-widgets/command_edit.cpp
index a1e4de358..7ff714e8f 100644
--- a/desktop-widgets/command_edit.cpp
+++ b/desktop-widgets/command_edit.cpp
@@ -230,6 +230,9 @@ DiveField EditAirTemp::fieldId() const
void EditWaterTemp::set(struct dive *d, int value) const
{
d->watertemp.mkelvin = value > 0 ? (uint32_t)value : 0u;
+
+ // re-populate the temperatures - easiest way to do this is by calling fixup_dive
+ fixup_dive(d);
}
int EditWaterTemp::data(struct dive *d) const