summaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
authorGravatar Stefan Fuchs <sfuchs@gmx.de>2017-10-16 12:00:13 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-10-16 03:43:02 -0800
commit0b6fb4948900f3008e76a5feb55ad763f30fdada (patch)
treeb3e59c1895f22481d0ae252425e86acbc9415684 /desktop-widgets
parent5b415ad8dbee94bcdd8ab1970cb8f2c188fffea5 (diff)
downloadsubsurface-0b6fb4948900f3008e76a5feb55ad763f30fdada.tar.gz
In location information UI set reverse geo lookup button activ...
as soon as coordinates are available . Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/locationinformation.cpp1
1 files changed, 1 insertions, 0 deletions
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);