diff options
author | Ivo van Dongen <info@ivovandongen.nl> | 2016-10-23 13:15:33 +0200 |
---|---|---|
committer | Ivo van Dongen <ivovandongen@users.noreply.github.com> | 2016-10-25 12:47:35 +0200 |
commit | 068e78a2e77b866364a9710a76ed114860f361c9 (patch) | |
tree | 969a56ddc2c30d5aa357c4ce4c3500b9250f7162 /src | |
parent | 31a7925205b24987c55ff9d679bff25dfe42c0a2 (diff) | |
download | qtlocation-mapboxgl-068e78a2e77b866364a9710a76ed114860f361c9.tar.gz |
[core] geojson source - reset req on setURL
Diffstat (limited to 'src')
-rw-r--r-- | src/mbgl/style/sources/geojson_source_impl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/style/sources/geojson_source_impl.cpp b/src/mbgl/style/sources/geojson_source_impl.cpp index f4d47cae35..0406cb22e5 100644 --- a/src/mbgl/style/sources/geojson_source_impl.cpp +++ b/src/mbgl/style/sources/geojson_source_impl.cpp @@ -40,8 +40,9 @@ void GeoJSONSource::Impl::setURL(std::string url_) { url = std::move(url_); //Signal that the source description needs a reload - if (loaded) { + if (loaded || req) { loaded = false; + req.reset(); observer->onSourceDescriptionChanged(base); } } @@ -138,7 +139,6 @@ void GeoJSONSource::Impl::loadDescription(FileSource& fileSource) { loaded = true; observer->onSourceLoaded(base); - req.reset(); } }); } |