Skip to content

Commit

Permalink
Fix drag and drop designer issue with field alias
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Sep 14, 2016
1 parent 632da63 commit a47d9a7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core/qgseditformconfig.cpp
Expand Up @@ -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 );
}
}
Expand Down

0 comments on commit a47d9a7

Please sign in to comment.