diff options
author | Paolo Angelelli <paolo.angelelli@qt.io> | 2017-06-26 14:30:46 +0200 |
---|---|---|
committer | Paolo Angelelli <paolo.angelelli@qt.io> | 2017-07-07 13:39:39 +0000 |
commit | d4cb4961ed0a15d0746d96da38228787658d87bd (patch) | |
tree | 4af8cdcc1e3a2032d995234556cf3bbaeaecd486 | |
parent | a6be180f8f4defd9f6341f4ca089d3e22df431e6 (diff) | |
download | qtlocation-d4cb4961ed0a15d0746d96da38228787658d87bd.tar.gz |
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 <alexander.blasche@qt.io>
-rw-r--r-- | src/plugins/geoservices/osm/qgeotileproviderosm.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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); |