Skip to content

Commit cce0702

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/qgsattributetableconfig.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ void QgsAttributeTableConfig::update( const QgsFields& fields )
6565
const ColumnConfig& column = mColumns.at( i );
6666
if ( column.type == Field )
6767
{
68-
if ( fields.lookupField( column.name ) == -1 )
68+
if ( fields.indexOf( column.name ) == -1 )
6969
{
7070
mColumns.remove( i );
7171
}

0 commit comments

Comments
 (0)