mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Clear the location if we have no dive site
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
f8b63e1bb6
commit
ccf833b45c
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue