diff options
Diffstat (limited to 'divesitehelpers.cpp')
-rw-r--r-- | divesitehelpers.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/divesitehelpers.cpp b/divesitehelpers.cpp index 15946c49d..4fa24a348 100644 --- a/divesitehelpers.cpp +++ b/divesitehelpers.cpp @@ -53,7 +53,7 @@ void ReverseGeoLookupThread::run() { connect(&timer, SIGNAL(timeout()), &loop, SLOT(quit())); Q_FOREACH (const GeoLookupInfo& info, geo_lookup_data ) { - struct dive_site *ds = get_dive_site_by_uuid(info.uuid); + struct dive_site *ds = info.uuid ? get_dive_site_by_uuid(info.uuid) : &displayed_dive_site; // first check the findNearbyPlaces API from geonames - that should give us country, state, city request.setUrl(geonamesURL.arg(uiLanguage(NULL)).arg(info.lat.udeg / 1000000.0).arg(info.lon.udeg / 1000000.0)); |