From d4cb4961ed0a15d0746d96da38228787658d87bd Mon Sep 17 00:00:00 2001 From: Paolo Angelelli Date: Mon, 26 Jun 2017 14:30:46 +0200 Subject: Fix OSM plugin not working with providersrepository.disabled = true Provider's status was not updated when disabling the redirection. Task-number: QTBUG-61637 Change-Id: I5987cc8363f69060c5e9ed7daafaab03043e333c Reviewed-by: Alex Blasche --- src/plugins/geoservices/osm/qgeotileproviderosm.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/geoservices/osm/qgeotileproviderosm.cpp b/src/plugins/geoservices/osm/qgeotileproviderosm.cpp index ad8edfd5..563ac161 100644 --- a/src/plugins/geoservices/osm/qgeotileproviderosm.cpp +++ b/src/plugins/geoservices/osm/qgeotileproviderosm.cpp @@ -173,6 +173,8 @@ void QGeoTileProviderOsm::disableRedirection() for (TileProvider *p: m_providerList) { if (p->isValid() && !found) { m_provider = p; + m_providerId = m_providerList.indexOf(p); + m_status = Resolved; found = true; } p->disconnect(this); -- cgit v1.2.1