diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-11-29 13:11:17 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-11-29 13:12:44 -0800 |
commit | d668f5dc8e0121d4000c7b2c340d7a0cd86efc49 (patch) | |
tree | 1e2634094ea5dc3278694f55f5e3f0ce661e26a2 /qt-ui/globe.cpp | |
parent | 31f64e9b484bbd427ac2b4b9c4c4bd1d2a03b5b2 (diff) | |
download | subsurface-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/globe.cpp')
-rw-r--r-- | qt-ui/globe.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/qt-ui/globe.cpp b/qt-ui/globe.cpp index 83b9464b4..8b3f140b7 100644 --- a/qt-ui/globe.cpp +++ b/qt-ui/globe.cpp @@ -185,11 +185,11 @@ void GlobeGPS::repopulateLabels() void GlobeGPS::reload() { - if (editingDiveCoords) { - editingDiveCoords = 0; - if (messageWidget->isVisible()) - messageWidget->animatedHide(); - } + editingDiveCoords = 0; + + if (messageWidget->isVisible()) + messageWidget->animatedHide(); + repopulateLabels(); } |