Skip to content
Permalink
Browse files

Merge pull request #2715 from SebDieBln/FixWarnDualViewLayout

Fix warning when a QLayout is already present in QgsDualView.
  • Loading branch information
m-kuhn committed Jan 24, 2016
2 parents bbfcbca + da43fb7 commit ba530a0f1c11b48de35e13515660d2bcd17dd3ce
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 ba530a0

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