nav: Only recompute when onroad (#21797)

old-commit-hash: c09cff23aa0a69063edb168afcdb8e1212bb0e19
This commit is contained in:
Willem Melching
2021-07-30 12:13:51 +02:00
committed by GitHub
parent 18421ab6d7
commit 3267bd5c14
+4
View File
@@ -259,6 +259,10 @@ static float get_time_typical(const QGeoRouteSegment &segment) {
void MapWindow::recomputeRoute() {
if (!QUIState::ui_state.scene.started) {
return;
}
// Retry all timed out requests
if (!m_map.isNull()) {
m_map->connectionEstablished();