From b7bf5d0fb2c8f07f9472b3dfdfd86263d50e396f Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 13 Oct 2015 13:29:44 -0700 Subject: Only allow reverse geo lookup if divesite has GPS data Signed-off-by: Dirk Hohndel --- qt-ui/locationinformation.cpp | 1 + 1 file changed, 1 insertion(+) 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(ui.diveSiteListView->model()); emit startFilterDiveSite(displayed_dive_site.uuid); if (m) -- cgit v1.2.3-70-g09d2