From ccf833b45cf7cc9f0bc1ddd3220148835062593d Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 12 Feb 2015 01:34:00 -0800 Subject: Clear the location if we have no dive site Signed-off-by: Dirk Hohndel --- qt-ui/maintab.cpp | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3-70-g09d2