From 5f68d2dce0c0e5e56c05574209d0bbd2fa077071 Mon Sep 17 00:00:00 2001 From: Ale Martinez Date: Wed, 2 Dec 2020 18:31:19 -0300 Subject: [PATCH] VideoWindow - Don't show LiveMap when there is no video Fixes #3621 --- src/Train/VideoWindow.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Train/VideoWindow.cpp b/src/Train/VideoWindow.cpp index 06b000ea5..ca41b9911 100644 --- a/src/Train/VideoWindow.cpp +++ b/src/Train/VideoWindow.cpp @@ -376,9 +376,10 @@ void VideoWindow::telemetryUpdate(RealtimeData rtd) double dLon = rtd.getLongitude(); double dAlt = rtd.getAltitude(); - // show/plot or hide depending on existance of valid location data + // show/plot or hide depending on existance of valid location + // data, only when there is a video to play geolocation geo(dLat, dLon, dAlt); - if (geo.IsReasonableGeoLocation()) + if (m && geo.IsReasonableGeoLocation()) { liveMapWidget->plotNewLatLng(dLat, dLon); liveMapWidget->show();