Skip to content

Commit 6c84b6e

Browse files
luipirm-kuhn
authored andcommittedMay 30, 2017
Avoid row sorts during attribute editing in AttributeTable Fix #15976
1 parent d1e8903 commit 6c84b6e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed
 

‎src/gui/attributetable/qgsattributetablemodel.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,8 @@ void QgsAttributeTableModel::updatedFields()
244244

245245
void QgsAttributeTableModel::editCommandEnded()
246246
{
247-
reload( createIndex( mChangedCellBounds.top(), mChangedCellBounds.left() ),
248-
createIndex( mChangedCellBounds.bottom(), mChangedCellBounds.right() ) );
249-
247+
// do not do releoad(...) due would trigger (dataChanged) row sort
248+
// giving issue: https://issues.qgis.org/issues/15976
250249
mChangedCellBounds = QRect();
251250
}
252251

0 commit comments

Comments
 (0)
Please sign in to comment.