diff options
author | Robert C. Helling <helling@atdotde.de> | 2015-01-30 11:16:55 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-01-31 14:09:50 -0800 |
commit | 1e45858ee6e40da932be301e39d3fced6b393490 (patch) | |
tree | a745c1ef7cd8a10c7187a8fa34a80a58301439c4 /qt-ui/maintab.cpp | |
parent | c70ba77199ce87322402f976230402e39f6c133f (diff) | |
download | subsurface-1e45858ee6e40da932be301e39d3fced6b393490.tar.gz |
Update ceiling when changing dive mode
Without this patch, the user effectively cannot change the dive mode as
any change is overwritten by replot copying current_dive over
displayed_dive. The way out is not to call replot but only update the deco
ceiling directly.
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r-- | qt-ui/maintab.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index 5fc0eb0ad..7335711e9 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -1018,7 +1018,7 @@ void MainTab::divetype_Changed(int index) displayed_dive.dc.divemode = (enum dive_comp_type) index; update_setpoint_events(&displayed_dive.dc); markChangedWidget(ui.DiveType); - MainWindow::instance()->graphics()->replot(); + MainWindow::instance()->graphics()->recalcCeiling(); } void MainTab::on_watertemp_textChanged(const QString &text) |