diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-06-29 17:45:11 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-06-29 17:45:11 -0700 |
commit | abb9a6c12dffaf8ef23d31b9c9d462607471c9ed (patch) | |
tree | dec0b5408c4ee1cd481b6a15ca000f3571561b1e /qt-ui/globe.cpp | |
parent | e92576600bca2d2bfec4000ffde0d4e7cb21b57d (diff) | |
download | subsurface-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.cpp | 3 |
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(); } |