In location information UI set reverse geo lookup button activ...

as soon as coordinates are available .

Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
This commit is contained in:
Stefan Fuchs 2017-10-16 12:00:13 +02:00 committed by Dirk Hohndel
parent 5b415ad8db
commit 0b6fb49489

View file

@ -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);