summaryrefslogtreecommitdiffstats
path: root/qt-ui/globe.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-29 17:45:11 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-29 17:45:11 -0700
commitabb9a6c12dffaf8ef23d31b9c9d462607471c9ed (patch)
treedec0b5408c4ee1cd481b6a15ca000f3571561b1e /qt-ui/globe.cpp
parente92576600bca2d2bfec4000ffde0d4e7cb21b57d (diff)
downloadsubsurface-abb9a6c12dffaf8ef23d31b9c9d462607471c9ed.tar.gz
Globe: don't show the location edit message after aborting plan
For some reason the isVisible() check failed, even though the message is, indeed, visible. But it doesn't seem to hurt to unconditionally hide the message, so I'm doing that instead. Fixes #576 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/globe.cpp')
-rw-r--r--qt-ui/globe.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/qt-ui/globe.cpp b/qt-ui/globe.cpp
index c21417990..91d88345b 100644
--- a/qt-ui/globe.cpp
+++ b/qt-ui/globe.cpp
@@ -216,8 +216,7 @@ void GlobeGPS::repopulateLabels()
void GlobeGPS::reload()
{
editingDiveLocation = false;
- if (messageWidget->isVisible())
- messageWidget->hide();
+ messageWidget->hide();
repopulateLabels();
}