diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-03-03 23:09:25 +0100 |
---|---|---|
committer | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-04-07 00:13:35 +0200 |
commit | 806cfcee212fa89ecfccad0f78225b83159d131e (patch) | |
tree | 1f5ac4a754f251849ca9bcb2421bde6cab994f63 /profile-widget/profilewidget2.cpp | |
parent | 33fb6461fbe7e389081e77853e63638a1a343623 (diff) | |
download | subsurface-806cfcee212fa89ecfccad0f78225b83159d131e.tar.gz |
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>
Diffstat (limited to 'profile-widget/profilewidget2.cpp')
-rw-r--r-- | profile-widget/profilewidget2.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/profile-widget/profilewidget2.cpp b/profile-widget/profilewidget2.cpp index 76822c196..555305817 100644 --- a/profile-widget/profilewidget2.cpp +++ b/profile-widget/profilewidget2.cpp @@ -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) |