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:
parent
17556cc66c
commit
649b2f2a9e
@ -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();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user