mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
33fb6461fb
commit
806cfcee21
3 changed files with 6 additions and 20 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue