diff options
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r-- | qt-ui/mainwindow.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 1678cd6d4..eb02ae8c9 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -648,15 +648,19 @@ bool MainWindow::plannerStateClean() return true; } +void MainWindow::refreshProfile() +{ + showProfile(); + graphics()->replot(get_dive(selected_dive)); + DivePictureModel::instance()->updateDivePictures(); +} + void MainWindow::planCanceled() { // while planning we might have modified the displayed_dive // let's refresh what's shown on the profile - showProfile(); - graphics()->replot(); + refreshProfile(); refreshDisplay(false); - graphics()->plotDive(get_dive(selected_dive)); - DivePictureModel::instance()->updateDivePictures(); } void MainWindow::planCreated() |