cleanup: un-singletonify SetpointDialog

We have too many global objects. There is no reason why this dialog
should be a persistent global object.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2020-03-03 23:09:25 +01:00
parent 33fb6461fb
commit 806cfcee21
3 changed files with 6 additions and 20 deletions

View file

@ -1611,8 +1611,8 @@ void ProfileWidget2::addDivemodeSwitch(int seconds, int divemode)
void ProfileWidget2::addSetpointChange(int seconds)
{
SetpointDialog::instance()->setpointData(current_dc, seconds);
SetpointDialog::instance()->show();
SetpointDialog dialog(current_dc, seconds);
dialog.exec();
}
void ProfileWidget2::splitDive(int seconds)