mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
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
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue