summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/mainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-05-15 10:06:50 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-05-16 10:10:30 -0700
commit1777df405fef2b5ebd7be0de6bdc9084df959d28 (patch)
tree6d7e17b8b178268afe4415161b8646146a5a1e70 /desktop-widgets/mainwindow.cpp
parent27505aedfb06333671652d4ead8ac95041fc5473 (diff)
downloadsubsurface-1777df405fef2b5ebd7be0de6bdc9084df959d28.tar.gz
desktop: don't call plotDive with doClearPictures = true
This was an old "optimization" to avoid double plotting of the pictures, first by the profile itself, then by the picture tab. Since the profile now updates the pictures itself, this must be removed: The picture tab doesn't do it anymore. Fixes #2833 Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/mainwindow.cpp')
-rw-r--r--desktop-widgets/mainwindow.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp
index 7888a1d48..b3f474de8 100644
--- a/desktop-widgets/mainwindow.cpp
+++ b/desktop-widgets/mainwindow.cpp
@@ -449,7 +449,7 @@ void MainWindow::selectionChanged()
configureToolbar();
enableDisableOtherDCsActions();
}
- graphics->plotDive(current_dive, false, true);
+ graphics->plotDive(current_dive, false);
MapWidget::instance()->selectionChanged();
}
@@ -1080,7 +1080,7 @@ void MainWindow::on_actionPreviousDC_triggered()
unsigned nrdc = number_of_computers(current_dive);
dc_number = (dc_number + nrdc - 1) % nrdc;
configureToolbar();
- graphics->plotDive(current_dive, false, true);
+ graphics->plotDive(current_dive, false);
mainTab->updateDiveInfo();
}
@@ -1089,7 +1089,7 @@ void MainWindow::on_actionNextDC_triggered()
unsigned nrdc = number_of_computers(current_dive);
dc_number = (dc_number + 1) % nrdc;
configureToolbar();
- graphics->plotDive(current_dive, false, true);
+ graphics->plotDive(current_dive, false);
mainTab->updateDiveInfo();
}