Skip to content
Permalink
Browse files

Q_FOREACH use to iterate over fields

  • Loading branch information
pblottiere committed Jun 30, 2017
1 parent c6ffd54 commit 6a1c141f10fe7985ba34363a57a2eb5249c28f1c
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/gui/qgsattributeform.cpp
@@ -1973,9 +1973,8 @@ void QgsAttributeForm::updateJoinedFields( const QgsEditorWidgetWrapper &eww )
}
else
{
for ( int i = 0; i < joinFeature.fields().count(); i++ )
Q_FOREACH ( const QgsField &field, joinFeature.fields() )
{
QgsField field = joinFeature.fields().field( i );
QString prefixedName = info->prefixedFieldName( field );
changeAttribute( prefixedName, joinFeature.attribute( field.name() ) );
}

0 comments on commit 6a1c141

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