diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-04-13 21:29:15 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-05-06 13:58:09 -0700 |
commit | 4e25912fd335159f6bd5d27eb423c5289e35cba5 (patch) | |
tree | e90c22b0e312750a42bf4e3c281568513b888a3e /desktop-widgets/mainwindow.cpp | |
parent | 989d6a3f96b818e5eacc5a2ccb1cc82e6dd8354c (diff) | |
download | subsurface-4e25912fd335159f6bd5d27eb423c5289e35cba5.tar.gz |
cleanup: don't call updateDivePictures in MainWindow
That is already properly done by the photo-tabwidget, which displays
the pictures.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/mainwindow.cpp')
-rw-r--r-- | desktop-widgets/mainwindow.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp index 8a8981a46..dfe00bfe1 100644 --- a/desktop-widgets/mainwindow.cpp +++ b/desktop-widgets/mainwindow.cpp @@ -676,7 +676,6 @@ void MainWindow::on_actionClose_triggered() { if (okToClose(tr("Please save or cancel the current dive edit before closing the file."))) { closeCurrentFile(); - DivePictureModel::instance()->updateDivePictures(); setApplicationState(ApplicationState::Default); } } @@ -779,7 +778,6 @@ void MainWindow::refreshProfile() showProfile(); configureToolbar(); graphics->plotDive(current_dive, true); - DivePictureModel::instance()->updateDivePictures(); } void MainWindow::planCanceled() @@ -903,7 +901,6 @@ void MainWindow::on_actionDivePlanner_triggered() if (current_dive->salinity) divePlannerWidget->setSalinity(current_dive->salinity); } - DivePictureModel::instance()->updateDivePictures(); divePlannerWidget->setReplanButton(false); } |