From 1777df405fef2b5ebd7be0de6bdc9084df959d28 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Fri, 15 May 2020 10:06:50 +0200 Subject: 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 --- desktop-widgets/mainwindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'desktop-widgets/mainwindow.cpp') 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(); } -- cgit v1.2.3-70-g09d2