diff options
author | Paolo Angelelli <paolo.angelelli@qt.io> | 2016-10-07 14:19:16 +0200 |
---|---|---|
committer | Paolo Angelelli <paolo.angelelli@qt.io> | 2016-10-10 09:29:09 +0000 |
commit | 8bc909704986209e98feae8057b0e3ce07a28cd8 (patch) | |
tree | 4d245573007b1630cf4f22ab6d923d8bdf307aa2 /src/plugins/geoservices | |
parent | a7c7a9bfc1f1d75f23f1e67ba3859e698e2e8965 (diff) | |
download | qtlocation-8bc909704986209e98feae8057b0e3ce07a28cd8.tar.gz |
Return only one route from osm plugin
Until we figure out a way to deliver also the id of the route from the
RouteModel, it's better to return only the first route or otherwise it's
hard, in the mapItemView to either create only one delegate or treat
delegates after the first differently
Change-Id: Ibaa92ce93349619a31c105546ee9c3ff760c5b0b
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/plugins/geoservices')
-rw-r--r-- | src/plugins/geoservices/osm/qgeoroutereplyosm.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/geoservices/osm/qgeoroutereplyosm.cpp b/src/plugins/geoservices/osm/qgeoroutereplyosm.cpp index 81ada01d..701d1224 100644 --- a/src/plugins/geoservices/osm/qgeoroutereplyosm.cpp +++ b/src/plugins/geoservices/osm/qgeoroutereplyosm.cpp @@ -89,7 +89,7 @@ void QGeoRouteReplyOsm::networkReplyFinished() QGeoRouteReply::Error error = parser->parseReply(routes, errorString, m_reply->readAll()); if (error == QGeoRouteReply::NoError) { - setRoutes(routes); + setRoutes(routes.mid(0,1)); // TODO QTBUG-56426 // setError(QGeoRouteReply::NoError, status); // can't do this, or NoError is emitted and does damages setFinished(true); } else { |