From 5d8830750addc4bcf0f06d7ffa24012927143e59 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Wed, 21 Nov 2018 16:41:46 +0100 Subject: Desktop: don't refresh display on autogroup The whole point of the undo-command system is that the divelist doesn't have to be refreshed. Therefore, don't do it for autogrouping / deautogrouping. Moreover, the divelist-changed flag is also set by the command and doesn't have to be set explicitly. Signed-off-by: Berthold Stoeger --- desktop-widgets/mainwindow.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp index f5e63851c..99942ec56 100644 --- a/desktop-widgets/mainwindow.cpp +++ b/desktop-widgets/mainwindow.cpp @@ -1062,8 +1062,6 @@ void MainWindow::on_actionAutoGroup_triggered() Command::autogroupDives(); else Command::removeAutogenTrips(); - refreshDisplay(); - mark_divelist_changed(true); } void MainWindow::on_actionYearlyStatistics_triggered() -- cgit v1.2.3-70-g09d2