From 0b6fb4948900f3008e76a5feb55ad763f30fdada Mon Sep 17 00:00:00 2001 From: Stefan Fuchs Date: Mon, 16 Oct 2017 12:00:13 +0200 Subject: In location information UI set reverse geo lookup button activ... as soon as coordinates are available . Signed-off-by: Stefan Fuchs --- desktop-widgets/locationinformation.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'desktop-widgets/locationinformation.cpp') diff --git a/desktop-widgets/locationinformation.cpp b/desktop-widgets/locationinformation.cpp index 6382378da..b455175a2 100644 --- a/desktop-widgets/locationinformation.cpp +++ b/desktop-widgets/locationinformation.cpp @@ -133,6 +133,7 @@ void LocationInformationWidget::updateGpsCoordinates() QString oldText = ui.diveSiteCoordinates->text(); const char *coords = printGPSCoords(displayed_dive_site.latitude.udeg, displayed_dive_site.longitude.udeg); ui.diveSiteCoordinates->setText(coords); + ui.geoCodeButton->setEnabled(dive_site_has_gps_location(&displayed_dive_site)); free((void *)coords); if (oldText != ui.diveSiteCoordinates->text()) markChangedWidget(ui.diveSiteCoordinates); -- cgit v1.2.3-70-g09d2