cleanup: don't explicitly clear tabs in MainWindow::selectionChanged()

When there is no current dive, mainTab->updateDiveInfo() implicitly
clears the tabs. There is no need to call this explicitly.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2020-04-13 13:51:57 +02:00 committed by Dirk Hohndel
parent 17556cc66c
commit 649b2f2a9e

View file

@ -450,11 +450,8 @@ void MainWindow::configureToolbar()
void MainWindow::selectionChanged()
{
if (!current_dive) {
mainTab->clearTabs();
mainTab->updateDiveInfo();
} else {
mainTab->updateDiveInfo();
mainTab->updateDiveInfo();
if (current_dive) {
configureToolbar();
enableDisableOtherDCsActions();
}