diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2014-05-21 23:31:26 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-05-22 14:41:26 +0900 |
commit | f99ccc8ac2ba4ebcf2ae69e03ba9183ea71a0025 (patch) | |
tree | 1bf91fbfbc4d4b35c53dea57139d6335802c8549 /qt-ui/mainwindow.cpp | |
parent | c6ad04d076a24001ded7bc099498dd6deb97949b (diff) | |
download | subsurface-f99ccc8ac2ba4ebcf2ae69e03ba9183ea71a0025.tar.gz |
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>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r-- | qt-ui/mainwindow.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 33946f34f..9b00db2f1 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -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() |