mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
Replot after changing divetype
Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
7d8ecf8ec8
commit
bfe05b4340
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue