summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2018-02-21 12:35:44 +0100
committerKonstantin Käfer <mail@kkaefer.com>2018-02-23 16:55:22 +0100
commitdfeb5b25d3b78b238253ff2866aaab207fd5daa4 (patch)
treed5974e0e0b7dbc0a0d6659105d1b139d49234c70 /src
parentb79a1cc82e21bb8249d871691d6a4d250cd6a97c (diff)
downloadqtlocation-mapboxgl-dfeb5b25d3b78b238253ff2866aaab207fd5daa4.tar.gz
[core] continue loading style even if we mutate it
When we load a stale style from cache, and the user immediately starts mutating it, we should continue loading the style so that we'll get a fresh copy of the data into our cache and avoid perpetually showing the stale style.
Diffstat (limited to 'src')
-rw-r--r--src/mbgl/style/style_impl.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/mbgl/style/style_impl.cpp b/src/mbgl/style/style_impl.cpp
index d330b3120a..0c7f924917 100644
--- a/src/mbgl/style/style_impl.cpp
+++ b/src/mbgl/style/style_impl.cpp
@@ -55,11 +55,6 @@ void Style::Impl::loadURL(const std::string& url_) {
url = url_;
styleRequest = fileSource.request(Resource::style(url), [this](Response res) {
- // Once we get a fresh style, or the style is mutated, stop revalidating.
- if (res.isFresh() || mutated) {
- styleRequest.reset();
- }
-
// Don't allow a loaded, mutated style to be overwritten with a new version.
if (mutated && loaded) {
return;