summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r--qt-ui/mainwindow.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index 0b1f57ca9..593bbf166 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -258,7 +258,11 @@ void MainWindow::on_actionAddDive_triggered()
disableDcShortcuts();
DivePlannerPointsModel::instance()->setPlanMode(false);
ui->stackedWidget->setCurrentIndex(1);
- ui->infoPane->setCurrentIndex(1);
+ ui->infoPane->setCurrentIndex(0);
+ ui->InfoWidget->clearStats();
+ ui->InfoWidget->clearInfo();
+ ui->InfoWidget->clearEquipment();
+ ui->InfoWidget->updateDiveInfo(-1);
}
void MainWindow::on_actionRenumber_triggered()