diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-04-13 15:50:27 +0200 |
---|---|---|
committer | Robert C. Helling <helling@atdotde.de> | 2020-05-04 10:42:07 +0200 |
commit | 9bbd8b8169480f124d81b9cd4d05064ac664ae0d (patch) | |
tree | bd7a3c0e9748dff3e865006799de503f4c4005e9 /tests | |
parent | 4f5621c4c6acc3a1dbc1dbdc1267a222dcf66854 (diff) | |
download | subsurface-9bbd8b8169480f124d81b9cd4d05064ac664ae0d.tar.gz |
desktop: remove unused if-branch in MainWindow::editCurrentDive()
MainWindow::editCurrentDive() used to be a general function to enter
edit mode. Nowadays, this is only called for one very specific case,
namely editing the profile of a manually added dive. Therefore, we
can remove the if-branch that dealt with planned dives.
Moreover, we can do the test right at the beginning and remove
a warning message for duplicate "edition", as this is not
possible anymore.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions