summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-05-27 11:28:42 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-05-27 15:12:41 -0700
commit7bed6e987319e60795db049fa2b87817e1badbdf (patch)
tree6d3b8c5347767f20195b31d7c3cb299d5ba8d54d /qt-ui/mainwindow.cpp
parentd1cd1eb933418282942b5cdacd1df46b75729f44 (diff)
downloadsubsurface-7bed6e987319e60795db049fa2b87817e1badbdf.tar.gz
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 <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r--qt-ui/mainwindow.cpp2
1 files changed, 1 insertions, 1 deletions
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);