mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 19:23:24 +00:00
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
1 changed files with 2 additions and 5 deletions
|
@ -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…
Add table
Reference in a new issue