summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2015-01-10 23:42:21 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-10 17:27:24 -0800
commitbfe05b43407c419a32548af20f40e2b9e3bca045 (patch)
tree79952903b1c8bf12487d00031d70d199dc52c7d0
parent7d8ecf8ec842c69ea38165023ffbc1ef457df79a (diff)
downloadsubsurface-bfe05b43407c419a32548af20f40e2b9e3bca045.tar.gz
Replot after changing divetype
Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--qt-ui/maintab.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index 2c92447e7..3e49086fd 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);