Skip to content

Commit

Permalink
reload only updated column
Browse files Browse the repository at this point in the history
  • Loading branch information
luipir authored and m-kuhn committed Oct 24, 2017
1 parent c97f06f commit adeb992
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/qgsattributetabledialog.cpp
Expand Up @@ -516,7 +516,8 @@ void QgsAttributeTableDialog::runFieldCalculation( QgsVectorLayer* layer, const
// refresh table with updated values
// fixes https://issues.qgis.org/issues/17312
QgsAttributeTableModel* masterModel = mMainView->masterModel();
masterModel->reload( masterModel->index( 0, 0 ), masterModel->index( masterModel->rowCount() - 1, masterModel->columnCount() - 1 ) );
int modelColumn = masterModel->fieldCol( fieldindex );
masterModel->reload( masterModel->index( 0, modelColumn ), masterModel->index( masterModel->rowCount() - 1, modelColumn ) );
}
}

Expand Down

0 comments on commit adeb992

Please sign in to comment.