From 09b02aae4e4059adca8a9094301e06f116bf4a3e Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 2 Oct 2017 23:16:14 -0700 Subject: Simplify the geo reverse lookup function We never actually create a list of dive sites for which we call the reverse lookup service, it's always just displayed_dive_site. So make this all much simpler and just go straight for that. This commit removes a loop, but doesn't change the indentation of the code inside the loop to make it easier to see what was changed. That whitespace change will be in my next commit. Signed-off-by: Dirk Hohndel --- desktop-widgets/locationinformation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'desktop-widgets') diff --git a/desktop-widgets/locationinformation.cpp b/desktop-widgets/locationinformation.cpp index 4203d95dd..80e879fae 100644 --- a/desktop-widgets/locationinformation.cpp +++ b/desktop-widgets/locationinformation.cpp @@ -292,7 +292,7 @@ void LocationInformationWidget::resetPallete() void LocationInformationWidget::reverseGeocode() { ReverseGeoLookupThread *geoLookup = ReverseGeoLookupThread::instance(); - geoLookup->lookup(&displayed_dive_site); + geoLookup->run(); updateLabels(); } -- cgit v1.2.3-70-g09d2