Skip to content
Permalink
Browse files

Fix warning when a QLayout is already present in QgsDualView.

  • Loading branch information
SebDieBln committed Jan 23, 2016
1 parent e83a7c8 commit da43fb70e7e3af623ab3b013a3342fddfd6e6826
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/gui/attributetable/qgsdualview.cpp
@@ -75,7 +75,8 @@ void QgsDualView::init( QgsVectorLayer* layer, QgsMapCanvas* mapCanvas, const Qg
mTableView->setModel( mFilterModel );
mFeatureList->setModel( mFeatureListModel );
mAttributeForm = new QgsAttributeForm( layer, QgsFeature(), mEditorContext );
mAttributeEditorScrollArea->setLayout( new QGridLayout() );
if ( !mAttributeEditorScrollArea->layout() )
mAttributeEditorScrollArea->setLayout( new QGridLayout() );
mAttributeEditorScrollArea->layout()->addWidget( mAttributeForm );
mAttributeEditorScrollArea->setWidget( mAttributeForm );

0 comments on commit da43fb7

Please sign in to comment.
You can’t perform that action at this time.