Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #2715 from SebDieBln/FixWarnDualViewLayout
Browse files Browse the repository at this point in the history
Fix warning when a QLayout is already present in QgsDualView.
  • Loading branch information
m-kuhn committed Jan 24, 2016
2 parents bbfcbca + da43fb7 commit ba530a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/attributetable/qgsdualview.cpp
Expand Up @@ -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 );

Expand Down

0 comments on commit ba530a0

Please sign in to comment.