Skip to content
Permalink
Browse files

fix #5523

  • Loading branch information
jef-n committed Jun 11, 2012
1 parent 4365efd commit 7e6924820dd5c3f30c2f03ee7c9319c45476b905
Showing with 9 additions and 1 deletion.
  1. +9 −1 src/gui/attributetable/qgsattributetablemodel.cpp
@@ -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();
}

0 comments on commit 7e69248

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