Skip to content
Permalink
Browse files

Fix attribute table shows columns twice

If they have been defined with different capitalization
  • Loading branch information
m-kuhn committed Jan 12, 2017
1 parent 23b0d44 commit e7f834add75946434039105259ec444217e75e24
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsattributetableconfig.cpp
@@ -64,7 +64,7 @@ void QgsAttributeTableConfig::update( const QgsFields& fields )
const ColumnConfig& column = mColumns.at( i );
if ( column.type == Field )
{
if ( fields.fieldNameIndex( column.name ) == -1 )
if ( fields.indexFromName( column.name ) == -1 )
{
mColumns.remove( i );
}

0 comments on commit e7f834a

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