mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Planner: clear out model before re-planning a dive
Otherwise points from a previous run might be around. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
a85a219df3
commit
d7630032e2
1 changed files with 1 additions and 0 deletions
|
@ -460,6 +460,7 @@ void MainWindow::on_actionReplanDive_triggered()
|
|||
}
|
||||
ui.ListWidget->endSearch();
|
||||
// put us in PLAN mode
|
||||
DivePlannerPointsModel::instance()->clear();
|
||||
DivePlannerPointsModel::instance()->setPlanMode(DivePlannerPointsModel::PLAN);
|
||||
|
||||
ui.newProfile->setPlanState();
|
||||
|
|
Loading…
Reference in a new issue