nav: set map widget parent

pull/22161/head
Adeeb Shihadeh 2021-09-06 22:51:09 -07:00
parent 449a28b9aa
commit d5face26a8
1 changed files with 1 additions and 1 deletions

View File

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