From d7630032e29947d4212ac21418040dd724692cba Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 19 Aug 2014 15:49:18 -0500 Subject: Planner: clear out model before re-planning a dive Otherwise points from a previous run might be around. Signed-off-by: Dirk Hohndel --- qt-ui/mainwindow.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'qt-ui') diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 92cc67f8f..b74c34723 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -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(); -- cgit v1.2.3-70-g09d2