Skip to content

Commit e7f834a

Browse files
committed
Fix attribute table shows columns twice
If they have been defined with different capitalization
1 parent 23b0d44 commit e7f834a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/qgsattributetableconfig.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ void QgsAttributeTableConfig::update( const QgsFields& fields )
6464
const ColumnConfig& column = mColumns.at( i );
6565
if ( column.type == Field )
6666
{
67-
if ( fields.fieldNameIndex( column.name ) == -1 )
67+
if ( fields.indexFromName( column.name ) == -1 )
6868
{
6969
mColumns.remove( i );
7070
}

0 commit comments

Comments
 (0)