From 9969179a06c30b56d3d057aba127686b64ccd659 Mon Sep 17 00:00:00 2001 From: Alex Blasche Date: Mon, 4 Jan 2016 11:33:33 +0100 Subject: Fix OSM based routing The server changed the status code for a successful route retrieval to 200. Task-number: QTBUG-50240 Change-Id: I98aa444b9a10a69b6a357eb92f6b45d534b4e45d Reviewed-by: Michal Klocek Reviewed-by: Harald Meyer Reviewed-by: Laszlo Agocs --- src/plugins/geoservices/osm/qgeoroutereplyosm.cpp | 4 ++-- 1 file 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; -- cgit v1.2.1