Skip to content

Commit

Permalink
Avoid row sorts during attribute editing in AttributeTable Fix #15976
Browse files Browse the repository at this point in the history
  • Loading branch information
luipir authored and m-kuhn committed May 30, 2017
1 parent d1e8903 commit 6c84b6e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/gui/attributetable/qgsattributetablemodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,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();
}

Expand Down

0 comments on commit 6c84b6e

Please sign in to comment.