Skip to content

Commit

Permalink
Remove 3D canvas widget when the dock is closed (just like 2d canvas)
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Sep 15, 2017
1 parent 0f692bb commit 7ad57e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/3d/qgs3dmapcanvasdockwidget.cpp
Expand Up @@ -15,6 +15,8 @@ Qgs3DMapCanvasDockWidget::Qgs3DMapCanvasDockWidget( QWidget *parent )
: QgsDockWidget( parent )
, mMainCanvas( nullptr )
{
setAttribute( Qt::WA_DeleteOnClose ); // removes the dock widget from main window when

QWidget *contentsWidget = new QWidget( this );

QToolBar *toolBar = new QToolBar( contentsWidget );
Expand Down

0 comments on commit 7ad57e6

Please sign in to comment.