aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-04-12 13:07:25 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-04-12 09:20:17 -0700
commit563263ab4fd862e9ad834e85b9815f69977da304 (patch)
treee0114fd6f1e1dfdcde51fa245d41a9e3e56fbd30 /desktop-widgets
parentf3b817c2d5a539a89cad24e4a527768d8cf59a23 (diff)
downloadsubsurface-563263ab4fd862e9ad834e85b9815f69977da304.tar.gz
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>
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/mainwindow.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp
index 1c122a4fd..e7416fe89 100644
--- a/desktop-widgets/mainwindow.cpp
+++ b/desktop-widgets/mainwindow.cpp
@@ -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()