Clear the location if we have no dive site

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-02-12 01:34:00 -08:00
parent f8b63e1bb6
commit ccf833b45c

View file

@ -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