summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-02-12 01:34:00 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-02-12 11:19:27 -0800
commitccf833b45cf7cc9f0bc1ddd3220148835062593d (patch)
tree661cdf2f188748f3521093d2aef77239cd96ae87 /qt-ui
parentf8b63e1bb6e282cd0e7368bbfcf2c572a4ba507e (diff)
downloadsubsurface-ccf833b45cf7cc9f0bc1ddd3220148835062593d.tar.gz
Clear the location if we have no dive site
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/maintab.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp
index 363ab3c43..d2990b194 100644
--- a/qt-ui/maintab.cpp
+++ b/qt-ui/maintab.cpp
@@ -442,6 +442,8 @@ void MainTab::updateDiveInfo(bool clear)
struct dive_site *ds = get_dive_site_by_uuid(displayed_dive.dive_site_uuid);
if (ds)
ui.location->setText(ds->name);
+ else
+ ui.location->clear();
updateGpsCoordinates();
// Subsurface always uses "local time" as in "whatever was the local time at the location"
// so all time stamps have no time zone information and are in UTC