mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
cleanup: remove unnecessary profile update after adding new dive
MainWindow::on_actionAddDive_triggered() updated the profile after calling Command::addDive(). However, that is redundant because the undo-machinery does the profile reload. Remove the call. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
f3b817c2d5
commit
563263ab4f
1 changed files with 0 additions and 5 deletions
|
@ -86,7 +86,6 @@ namespace {
|
|||
};
|
||||
}
|
||||
|
||||
|
||||
extern "C" int updateProgress(const char *text)
|
||||
{
|
||||
if (verbose)
|
||||
|
@ -969,10 +968,6 @@ void MainWindow::on_actionAddDive_triggered()
|
|||
fixup_dive(&d);
|
||||
|
||||
Command::addDive(&d, autogroup, true);
|
||||
|
||||
// Plot dive actually copies current_dive to displayed_dive and therefore ensures that the
|
||||
// correct data are displayed!
|
||||
graphics->plotDive(nullptr, false, true);
|
||||
}
|
||||
|
||||
void MainWindow::on_actionRenumber_triggered()
|
||||
|
|
Loading…
Add table
Reference in a new issue