Planner: after canceling a plan, redraw the profile
While planning we might have made changes to the displayed_dive. So we need to make sure that the profile is redrawn after we cancel a plan (or a re-plan). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
d7630032e2
commit
d45a991460
@ -395,7 +395,10 @@ bool MainWindow::plannerStateClean()
|
||||
|
||||
void MainWindow::planCanceled()
|
||||
{
|
||||
// while planning we might have modified the displayed_dive
|
||||
// let's refresh what's shown on the profile
|
||||
showProfile();
|
||||
ui.newProfile->replot();
|
||||
refreshDisplay(false);
|
||||
ui.newProfile->plotDive(get_dive(selected_dive));
|
||||
DivePictureModel::instance()->updateDivePictures();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user