Skip to content
Permalink
Browse files

Fix reference to temporary

  • Loading branch information
m-kuhn committed Sep 29, 2017
1 parent a1fd820 commit 95a392b0f3d8f9ffef487435c26bd1bc1662730e
Showing with 1 addition and 4 deletions.
  1. +1 −4 src/app/qgsattributesformproperties.cpp
@@ -262,18 +262,15 @@ void QgsAttributesFormProperties::loadAttributeEditorTree( DnDTree *tree )

tree->mIndexedWidgets.clear();

const QgsFields &fields = mLayer->fields();
const QgsFields fields = mLayer->fields();
for ( int i = 0; i < fields.size(); ++i )
{
DnDTreeItemData itemData = DnDTreeItemData( DnDTreeItemData::Field, fields.at( i ).name() );
itemData.setShowLabel( true );

FieldConfig cfg( mLayer, i );
QgsGui::editorWidgetRegistry()->name( cfg.mEditorWidgetType );


itemData.setData( 0, FieldConfigRole, QVariant::fromValue<FieldConfig>( cfg ) );

tree->mIndexedWidgets.insert( i, tree->addItem( tree->invisibleRootItem(), itemData ) );
}

0 comments on commit 95a392b

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