mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-07 20:53:25 +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()
|
void MainWindow::selectionChanged()
|
||||||
{
|
{
|
||||||
if (!current_dive) {
|
mainTab->updateDiveInfo();
|
||||||
mainTab->clearTabs();
|
if (current_dive) {
|
||||||
mainTab->updateDiveInfo();
|
|
||||||
} else {
|
|
||||||
mainTab->updateDiveInfo();
|
|
||||||
configureToolbar();
|
configureToolbar();
|
||||||
enableDisableOtherDCsActions();
|
enableDisableOtherDCsActions();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue