From 0817a5aaef67c20c4f01be6c8ba8f27a5eb17368 Mon Sep 17 00:00:00 2001 From: Willem Melching Date: Thu, 28 Apr 2022 14:51:02 +0200 Subject: [PATCH] ui: only open map pane when route is not empty (#24352) old-commit-hash: bff0db566bfc20a8f2ab936646c67be22b9ade76 --- selfdrive/ui/qt/maps/map.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/ui/qt/maps/map.cc b/selfdrive/ui/qt/maps/map.cc index 5e5fdb40cf..3b8668d0b7 100644 --- a/selfdrive/ui/qt/maps/map.cc +++ b/selfdrive/ui/qt/maps/map.cc @@ -131,7 +131,7 @@ void MapWindow::timerUpdate() { } } - if (sm->updated("navRoute")) { + if (sm->updated("navRoute") && (*sm)["navRoute"].getNavRoute().getCoordinates().size()) { qWarning() << "Got new navRoute from navd. Opening map:" << allow_open; // Only open the map on setting destination the first time