Profile now correctly displays the planned dive.

But it doesn't move the handlers yet, and when you confirm it you also
must click on the dive to select it or the profile will show garbage.

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2014-05-21 23:31:26 -03:00 committed by Dirk Hohndel
parent c6ad04d076
commit f99ccc8ac2
5 changed files with 58 additions and 34 deletions

View file

@ -410,10 +410,11 @@ void MainWindow::on_actionAddDive_triggered()
ui.InfoWidget->updateDiveInfo(selected_dive);
ui.InfoWidget->addDiveStarted();
ui.infoPane->setCurrentIndex(MAINTAB);
ui.newProfile->setAddState();
DivePlannerPointsModel::instance()->clear();
DivePlannerPointsModel::instance()->createSimpleDive();
ui.ListWidget->reload(DiveTripModel::CURRENT);
ui.newProfile->setAddState();
}
void MainWindow::on_actionRenumber_triggered()