Avoid row sorts during attribute editing in AttributeTable Fix #15976

This commit is contained in:
Luigi Pirelli 2017-05-01 09:59:43 +02:00 committed by Matthias Kuhn
parent 2929f9d693
commit f1383e240a

View File

@ -248,9 +248,8 @@ void QgsAttributeTableModel::updatedFields()
void QgsAttributeTableModel::editCommandEnded()
{
reload( createIndex( mChangedCellBounds.top(), mChangedCellBounds.left() ),
createIndex( mChangedCellBounds.bottom(), mChangedCellBounds.right() ) );
// do not do releoad(...) due would trigger (dataChanged) row sort
// giving issue: https://issues.qgis.org/issues/15976
mChangedCellBounds = QRect();
}