Navigation Menu

Skip to content

Commit

Permalink
fix removing closed 3d map view
Browse files Browse the repository at this point in the history
  • Loading branch information
NEDJIMAbelgacem authored and nyalldawson committed Jan 12, 2022
1 parent 8b50d05 commit 787aee7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/app/3d/qgs3dviewsmanager.cpp
Expand Up @@ -57,9 +57,12 @@ void Qgs3DViewsManager::removeClicked()

QString viewName = mListModel.stringList()[ m3DViewsListView->selectionModel()->selectedRows().at( 0 ).row() ];
m3DMapViewsDom->remove( viewName );
Qgs3DMapCanvasDockWidget *w = ( *m3DMapViewsWidgets )[ viewName ];
m3DMapViewsWidgets->remove( viewName );
w->close();
Qgs3DMapCanvasDockWidget *w = m3DMapViewsWidgets->value( viewName, nullptr );
if ( w )
{
m3DMapViewsWidgets->remove( viewName );
w->close();
}
reload();
}

Expand Down

0 comments on commit 787aee7

Please sign in to comment.