summaryrefslogtreecommitdiffstats
path: root/qt-ui/maintab.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-29 13:11:17 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-29 13:12:44 -0800
commitd668f5dc8e0121d4000c7b2c340d7a0cd86efc49 (patch)
tree1e2634094ea5dc3278694f55f5e3f0ce661e26a2 /qt-ui/maintab.cpp
parent31f64e9b484bbd427ac2b4b9c4c4bd1d2a03b5b2 (diff)
downloadsubsurface-d668f5dc8e0121d4000c7b2c340d7a0cd86efc49.tar.gz
Turn off dive location edit hint when cancelling dive edit
Simply clear the edited dive (regardless of whether it's set) and hide the message if visible. The previous code was a little too convoluted... Fixes #305 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 0e1e52289..ca0aba926 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -713,6 +713,7 @@ void MainTab::rejectChanges()
notesBackup.clear();
resetPallete();
editMode = NONE;
+ mainWindow()->globe()->reload();
if (lastMode == ADD || lastMode == MANUALLY_ADDED_DIVE) {
// more clean up
updateDiveInfo(selected_dive);