VideoWindow - Don't show LiveMap when there is no video

Fixes #3621
This commit is contained in:
Ale Martinez
2020-12-02 18:31:19 -03:00
parent 3c639d3377
commit 5f68d2dce0

View File

@@ -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();