Skip to content
Permalink
Browse files

Fix drag and drop designer issue with field alias

  • Loading branch information
m-kuhn committed Sep 14, 2016
1 parent 632da63 commit a47d9a71924fcac28cdb5964f949c3ed58b8011e
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/core/qgseditformconfig.cpp
@@ -49,8 +49,7 @@ void QgsEditFormConfig::setFields( const QgsFields& fields )
d->mInvisibleRootContainer->clear();
for ( int i = 0; i < d->mFields.size(); ++i )
{
QgsAttributeEditorField* field = new QgsAttributeEditorField( !d->mFields.at( i ).alias().isEmpty() ? d->mFields.at( i ).alias()
: d->mFields.at( i ).name(), i, d->mInvisibleRootContainer );
QgsAttributeEditorField* field = new QgsAttributeEditorField( d->mFields.at( i ).name(), i, d->mInvisibleRootContainer );
d->mInvisibleRootContainer->addChildElement( field );
}
}

0 comments on commit a47d9a7

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