From ef2f682c67e214895dd1047999ab71105ade8be9 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Wed, 13 Nov 2019 18:37:37 +0100 Subject: [PATCH] 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 --- desktop-widgets/command_divelist.cpp | 8 -------- 1 file changed, 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)