diff options
author | Robert C. Helling <helling@atdotde.de> | 2014-11-04 12:15:27 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-11-04 07:21:34 -0800 |
commit | 20a9db779d3a7ba1591e8d336c6b99b80aef71de (patch) | |
tree | 9fa678ed3da32dc3b0e6006c11c78eb4a272adcf /qt-ui/mainwindow.cpp | |
parent | 06ddfc01222879ee0463affe796dba05de33b368 (diff) | |
download | subsurface-20a9db779d3a7ba1591e8d336c6b99b80aef71de.tar.gz |
Offer to save to a copy in replan mode
When replannig a dive, offer another button that creates a new
dive rather than overwriting the old. This should help in creating
several versions of a planned dive (longer/shorter, deeper/shallower
etc). Note that this makes dives that start at the same time not
influcence each other's deco.
Also, only the first of a row of simultaneous dives contributes to
the tissue loadings of later dives.
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r-- | qt-ui/mainwindow.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index cc2d9704e..8a72bc898 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -466,6 +466,7 @@ void MainWindow::on_actionReplanDive_triggered() ui.newProfile->setPlanState(); ui.newProfile->clearHandlers(); ui.infoPane->setCurrentIndex(PLANNERWIDGET); + ui.divePlannerWidget->setReplanButton(true); DivePlannerPointsModel::instance()->loadFromDive(current_dive); reset_cylinders(&displayed_dive, true); ui.diveListPane->setCurrentIndex(1); // switch to the plan output @@ -491,6 +492,7 @@ void MainWindow::on_actionDivePlanner_triggered() DivePlannerPointsModel::instance()->setupStartTime(); DivePlannerPointsModel::instance()->createSimpleDive(); DivePictureModel::instance()->updateDivePictures(); + ui.divePlannerWidget->setReplanButton(false); ui.diveListPane->setCurrentIndex(1); // switch to the plan output ui.globePane->setCurrentIndex(1); |