aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--desktop-widgets/mainwindow.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp
index efe83ad9b..f3fee7ea5 100644
--- a/desktop-widgets/mainwindow.cpp
+++ b/desktop-widgets/mainwindow.cpp
@@ -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();
}