diff options
Diffstat (limited to 'desktop-widgets/mainwindow.cpp')
-rw-r--r-- | desktop-widgets/mainwindow.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp index 0e4daf0e2..cc1adc3b2 100644 --- a/desktop-widgets/mainwindow.cpp +++ b/desktop-widgets/mainwindow.cpp @@ -465,7 +465,7 @@ void MainWindow::selectionChanged() { if (!current_dive) { mainTab->clearTabs(); - mainTab->updateDiveInfo(true); + mainTab->updateDiveInfo(); graphics->setEmptyState(); } else { graphics->plotDive(nullptr, false, true); @@ -634,8 +634,9 @@ void MainWindow::on_actionCloudOnline_triggered() void MainWindow::cleanUpEmpty() { + current_dive = nullptr; mainTab->clearTabs(); - mainTab->updateDiveInfo(true); + mainTab->updateDiveInfo(); graphics->setEmptyState(); diveList->reload(); diveList->setSortOrder(DiveTripModelBase::NR, Qt::DescendingOrder); |