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 <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2018-11-21 16:41:46 +01:00 committed by Dirk Hohndel
parent 6bf4120dbb
commit 5d8830750a

View file

@ -1062,8 +1062,6 @@ void MainWindow::on_actionAutoGroup_triggered()
Command::autogroupDives();
else
Command::removeAutogenTrips();
refreshDisplay();
mark_divelist_changed(true);
}
void MainWindow::on_actionYearlyStatistics_triggered()