diff options
author | Robert C. Helling <helling@atdotde.de> | 2014-08-02 22:05:52 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-08-02 15:13:51 -0700 |
commit | 1508f957752aaecf3e416966aec2c6bab8737261 (patch) | |
tree | 4ec1379d901479e5b52556346688ef5a4367a748 /qt-ui/mainwindow.cpp | |
parent | 89622b0b5151c4841398efce6433a72a62a109f2 (diff) | |
download | subsurface-1508f957752aaecf3e416966aec2c6bab8737261.tar.gz |
Update pictures when entering/exiting planner
This fixes the problem I pointed out im my comment to #667 and hopefully also
the original problem although I cannot confirm since i cannot reproduce the
problem in the first place.
See #677
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r-- | qt-ui/mainwindow.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index fece00848..aa9d8c145 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -394,6 +394,7 @@ void MainWindow::planCanceled() showProfile(); refreshDisplay(false); ui.newProfile->plotDive(get_dive(selected_dive)); + DivePictureModel::instance()->updateDivePictures(); } void MainWindow::planCreated() @@ -453,6 +454,7 @@ void MainWindow::on_actionDivePlanner_triggered() setupForAddAndPlan("planned dive"); // don't translate, stored in XML file DivePlannerPointsModel::instance()->setupStartTime(); DivePlannerPointsModel::instance()->createSimpleDive(); + DivePictureModel::instance()->updateDivePictures(); ui.diveListPane->setCurrentIndex(1); // switch to the plan output ui.globePane->setCurrentIndex(1); |