Skip to content
Permalink
Browse files
fix removing closed 3d map view
  • Loading branch information
NEDJIMAbelgacem authored and nyalldawson committed Jan 12, 2022
1 parent 8b50d05 commit 787aee7c3e0d573dff3b9de38d7c6f18f9a3de78
Showing with 6 additions and 3 deletions.
  1. +6 −3 src/app/3d/qgs3dviewsmanager.cpp
@@ -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();
}

0 comments on commit 787aee7

Please sign in to comment.