From 113bf550a91e44b5261388f9f8c4dc3acd05a3d7 Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Sat, 10 Jan 2015 23:42:21 +0100 Subject: [PATCH 6/7] Replot after changing divetype Signed-off-by: Robert C. Helling --- qt-ui/maintab.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index 2c92447..3e49086 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -775,6 +775,7 @@ void MainTab::acceptChanges() if (displayed_dive.dc.dctype != cd->dc.dctype) { MODIFY_SELECTED_DIVES(EDIT_VALUE(dc.dctype)); MODIFY_SELECTED_DIVES(update_setpoint_events(&mydive->dc)); + do_replot = true; } if (displayed_dive.watertemp.mkelvin != cd->watertemp.mkelvin) MODIFY_SELECTED_DIVES(EDIT_VALUE(watertemp.mkelvin)); @@ -1018,7 +1019,6 @@ void MainTab::divetype_Changed(int index) { if (editMode == IGNORE) return; - qDebug() << "Changing divetype to " << dctype_text[index]; displayed_dive.dc.dctype = (enum dive_comp_type) index; update_setpoint_events(&displayed_dive.dc); markChangedWidget(ui.DiveType); -- 1.9.3 (Apple Git-50)