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:
Dirk Hohndel 2014-08-19 15:49:18 -05:00
parent a85a219df3
commit d7630032e2

View file

@ -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();