undo: switch SetpointDialog from divecomputer to dive + dc-number

Since pointers to divecomputers may not be stable, the undo
commands take a dive + a divecomputer number. Update the
SetpointDialog accordingly.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2020-03-03 23:17:08 +01:00
parent adb53f9c18
commit 9a4718b46f
3 changed files with 8 additions and 7 deletions

View file

@ -1611,7 +1611,7 @@ void ProfileWidget2::addDivemodeSwitch(int seconds, int divemode)
void ProfileWidget2::addSetpointChange(int seconds)
{
SetpointDialog dialog(current_dc, seconds);
SetpointDialog dialog(current_dive, dc_number, seconds);
dialog.exec();
}