Skip to content
Permalink
Browse files

reload only updated column

  • Loading branch information
luipir authored and m-kuhn committed Oct 24, 2017
1 parent c97f06f commit adeb99296d408cf0ac09279353d7abc6811d62de
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/app/qgsattributetabledialog.cpp
@@ -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 ) );
}
}

0 comments on commit adeb992

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