From 7bed6e987319e60795db049fa2b87817e1badbdf Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 27 May 2014 11:28:42 -0700 Subject: Planner: use the gas in the first cylinder for initial plan As Tomaz suggested, I don't need to pass the information whether we are on the planner into the function - it's part of the DivePlannerPointsModel and therefore already knows. Also, we want to make sure we actually use the gas that's in the first cylidner of the staging dive. Signed-off-by: Dirk Hohndel --- qt-ui/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-ui/mainwindow.cpp') diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 8a637ff6b..ecc04a58c 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -419,7 +419,7 @@ void MainWindow::on_actionDivePlanner_triggered() // create a simple starting dive, using the first gas from the just copied cylidners createFakeDiveForAddAndPlan(); - DivePlannerPointsModel::instance()->createSimpleDive(true); + DivePlannerPointsModel::instance()->createSimpleDive(); // reload and then disable the dive list ui.ListWidget->reload(DiveTripModel::CURRENT); -- cgit v1.2.3-70-g09d2