summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-09-18 23:02:53 -0500
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-09-18 23:02:53 -0500
commit64b014aefb2c69f20d1a15e4e011481a5f98f9da (patch)
tree2c7cac7bed7ffd5cbd865f8290cd8908a3a787c2 /qt-ui/mainwindow.cpp
parent56535e4b3b9c2324f42674f385ee7bda2b9028eb (diff)
downloadsubsurface-64b014aefb2c69f20d1a15e4e011481a5f98f9da.tar.gz
Don't show the planner widget when adding a dive
This looks like it might work, but since we keep recreating the dive, the info entered in the info pane is actually lost. But it's a step in the right direction. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
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()