summaryrefslogtreecommitdiffstats
path: root/qt-ui/maintab.cpp
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2014-08-02 22:05:52 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-08-02 15:13:51 -0700
commit1508f957752aaecf3e416966aec2c6bab8737261 (patch)
tree4ec1379d901479e5b52556346688ef5a4367a748 /qt-ui/maintab.cpp
parent89622b0b5151c4841398efce6433a72a62a109f2 (diff)
downloadsubsurface-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/maintab.cpp')
-rw-r--r--qt-ui/maintab.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index 0ed6c5dbf..5a6f7b537 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -838,6 +838,7 @@ void MainTab::rejectChanges()
else
clear_dive(&displayed_dive);
updateDiveInfo(selected_dive < 0);
+ DivePictureModel::instance()->updateDivePictures();
// the user could have edited the location and then canceled the edit
// let's get the correct location back in view
MainWindow::instance()->globe()->centerOnCurrentDive();