diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-11-13 18:37:37 +0100 |
---|---|---|
committer | bstoeger <32835590+bstoeger@users.noreply.github.com> | 2019-11-14 09:37:27 +0100 |
commit | ef2f682c67e214895dd1047999ab71105ade8be9 (patch) | |
tree | 381c625d9dc5784cea2fc65900b2d3c77086c2ca /desktop-widgets | |
parent | f6d3efc6f8b6914a9b2fdb3d5d74ef4a97f55096 (diff) | |
download | subsurface-ef2f682c67e214895dd1047999ab71105ade8be9.tar.gz |
Undo: remove superfluous refreshDisplay() in AddDive::(un)doit()
Dives used to be added from a special dive-edit screen. Thus, the
undo command had to close that screen. This is no longer the case.
Remove the calls.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets')
-rw-r--r-- | desktop-widgets/command_divelist.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/desktop-widgets/command_divelist.cpp b/desktop-widgets/command_divelist.cpp index 6e4ddb427..a08a6f797 100644 --- a/desktop-widgets/command_divelist.cpp +++ b/desktop-widgets/command_divelist.cpp @@ -432,10 +432,6 @@ void AddDive::redoit() // Select the newly added dive setSelection(divesAndSitesToRemove.dives, divesAndSitesToRemove.dives[0]); - - // Exit from edit mode, but don't recalculate dive list - // TODO: Remove edit mode - MainWindow::instance()->refreshDisplay(false); } void AddDive::undoit() @@ -446,10 +442,6 @@ void AddDive::undoit() // ...and restore the selection setSelection(selection, currentDive); - - // Exit from edit mode, but don't recalculate dive list - // TODO: Remove edit mode - MainWindow::instance()->refreshDisplay(false); } ImportDives::ImportDives(struct dive_table *dives, struct trip_table *trips, struct dive_site_table *sites, int flags, const QString &source) |