diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-10-13 13:29:44 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-10-13 13:29:44 -0700 |
commit | b7bf5d0fb2c8f07f9472b3dfdfd86263d50e396f (patch) | |
tree | f90dc09342afe304c16f013567d870b7f77bab9e | |
parent | c7c686f730a0480483452152c8e0e5efe3257c91 (diff) | |
download | subsurface-b7bf5d0fb2c8f07f9472b3dfdfd86263d50e396f.tar.gz |
Only allow reverse geo lookup if divesite has GPS data
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | qt-ui/locationinformation.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/locationinformation.cpp b/qt-ui/locationinformation.cpp index a99740cc7..19a4ad5f2 100644 --- a/qt-ui/locationinformation.cpp +++ b/qt-ui/locationinformation.cpp @@ -185,6 +185,7 @@ void LocationInformationWidget::showEvent(QShowEvent *ev) { if (displayed_dive_site.uuid) { updateLabels(); + ui.geoCodeButton->setEnabled(dive_site_has_gps_location(&displayed_dive_site)); QSortFilterProxyModel *m = qobject_cast<QSortFilterProxyModel *>(ui.diveSiteListView->model()); emit startFilterDiveSite(displayed_dive_site.uuid); if (m) |