summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@theqtcompany.com>2016-01-04 11:33:33 +0100
committerAlex Blasche <alexander.blasche@theqtcompany.com>2016-01-04 11:42:03 +0000
commit9969179a06c30b56d3d057aba127686b64ccd659 (patch)
tree5ed55ee7ec5f8f9b8e98af461f8c7e7960eae65e
parent63b118c7da215d994e1695797fd44c2ad35298c3 (diff)
Fix OSM based routing5.5
The server changed the status code for a successful route retrieval to 200. Task-number: QTBUG-50240 Change-Id: I98aa444b9a10a69b6a357eb92f6b45d534b4e45d Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com> Reviewed-by: Harald Meyer <dev@meh.at> Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
-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;