summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2014-05-21 23:31:26 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-05-22 14:41:26 +0900
commitf99ccc8ac2ba4ebcf2ae69e03ba9183ea71a0025 (patch)
tree1bf91fbfbc4d4b35c53dea57139d6335802c8549 /qt-ui/mainwindow.cpp
parentc6ad04d076a24001ded7bc099498dd6deb97949b (diff)
downloadsubsurface-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.cpp3
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()