diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-02-12 01:34:00 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-02-12 11:19:27 -0800 |
commit | ccf833b45cf7cc9f0bc1ddd3220148835062593d (patch) | |
tree | 661cdf2f188748f3521093d2aef77239cd96ae87 /qt-ui | |
parent | f8b63e1bb6e282cd0e7368bbfcf2c572a4ba507e (diff) | |
download | subsurface-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.cpp | 2 |
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 |