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>
This commit is contained in:
Dirk Hohndel 2013-09-18 23:02:53 -05:00
parent 56535e4b3b
commit 64b014aefb
2 changed files with 7 additions and 1 deletions

View file

@ -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()