nav: set map widget parent

old-commit-hash: d5face26a8
commatwo_master
Adeeb Shihadeh 4 years ago
parent 745c8ce522
commit b3f5ad454e
  1. 2
      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);

Loading…
Cancel
Save