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>
This commit is contained in:
Berthold Stoeger 2020-05-15 10:06:50 +02:00 committed by Dirk Hohndel
parent 27505aedfb
commit 1777df405f
2 changed files with 4 additions and 3 deletions

View file

@ -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();
}