From b3f5ad454e19a6aca9a74529c01f502b062aa7de Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Mon, 6 Sep 2021 22:51:09 -0700 Subject: [PATCH] nav: set map widget parent old-commit-hash: d5face26a82b717ce694aa848641b879076dfe1f --- 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 68f3030142..24f529a7e2 100644 --- a/selfdrive/ui/qt/maps/map.cc +++ b/selfdrive/ui/qt/maps/map.cc @@ -230,7 +230,7 @@ void MapWindow::resizeGL(int w, int h) { } void MapWindow::initializeGL() { - m_map.reset(new QMapboxGL(nullptr, m_settings, size(), 1)); + m_map.reset(new QMapboxGL(this, m_settings, size(), 1)); if (last_position) { m_map->setCoordinateZoom(*last_position, MAX_ZOOM);