summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@theqtcompany.com>2016-01-05 09:32:41 +0100
committerAlex Blasche <alexander.blasche@theqtcompany.com>2016-01-05 09:33:00 +0100
commita41bd80784a01050dfb6b888cd90505259471f4f (patch)
tree673e80fec7d46d4073c798b8769cad46920bb8a3
parentcf6bf74b900db1efd2f2c6d51313505fade267ee (diff)
parent9969179a06c30b56d3d057aba127686b64ccd659 (diff)
downloadqtlocation-a41bd80784a01050dfb6b888cd90505259471f4f.tar.gz
Merge remote-tracking branch 'gerrit/5.5' into 5.6
Change-Id: I0a137c8feba6c7da613b03a67d7cd4521524c58e
-rw-r--r--src/plugins/geoservices/osm/qgeoroutereplyosm.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/geoservices/osm/qgeoroutereplyosm.cpp b/src/plugins/geoservices/osm/qgeoroutereplyosm.cpp
index bca345fe..f704a714 100644
--- a/src/plugins/geoservices/osm/qgeoroutereplyosm.cpp
+++ b/src/plugins/geoservices/osm/qgeoroutereplyosm.cpp
@@ -344,10 +344,10 @@ void QGeoRouteReplyOsm::networkReplyFinished()
int status = object.value(QStringLiteral("status")).toDouble();
QString statusMessage = object.value(QStringLiteral("status_message")).toString();
- // status code is 0 in case of success
+ // status code 0 or 200 are case of success
// status code is 207 if no route was found
// an error occurred when trying to find a route
- if (0 != status) {
+ if (0 != status && 200 != status) {
setError(QGeoRouteReply::UnknownError, statusMessage);
m_reply->deleteLater();
m_reply = 0;