1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-20 10:54:14 +01:00

OP-1044 fix slow tiles loading preventig to ask for version at each request

This commit is contained in:
Alessio Morale 2013-07-19 14:14:24 +00:00
parent 42ff8a24bb
commit 27aa911af2

View File

@ -88,6 +88,10 @@ bool UrlFactory::IsCorrectGoogleVersions()
void UrlFactory::TryCorrectGoogleVersions()
{
static bool versionRetrieved = false;
if (versionRetrieved){
return;
}
QMutexLocker locker(&mutex);
@ -167,6 +171,7 @@ void UrlFactory::TryCorrectGoogleVersions()
#endif // DEBUG_URLFACTORY
}
reply->deleteLater();
versionRetrieved = true;
}
}