Skip to content

Commit

Permalink
fix #5523
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Jun 11, 2012
1 parent 4365efd commit 7e69248
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/gui/attributetable/qgsattributetablemodel.cpp
Expand Up @@ -164,7 +164,15 @@ void QgsAttributeTableModel::attributeDeleted( int idx )
Q_UNUSED( idx );
QgsDebugMsg( "entered." );
loadAttributes();
loadLayer();
for ( int row = 0; row <= mRowIdMap.size(); row++ )
{
QgsFeatureId fid = rowToId( row );

if( !mFeatureMap.contains( fid ) )
continue;

mFeatureMap[ fid ].deleteAttribute( idx );
}
emit modelChanged();
}

Expand Down

0 comments on commit 7e69248

Please sign in to comment.