Skip to content
Permalink
Browse files

Update Attr Table after field calculation: fixes #17312

  • Loading branch information
luipir authored and m-kuhn committed Oct 24, 2017
1 parent 29a137d commit d6a39e9018d2e48d32db45f07f9a26e8d1bf9867
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/app/qgsattributetabledialog.cpp
@@ -512,6 +512,11 @@ void QgsAttributeTableDialog::runFieldCalculation( QgsVectorLayer* layer, const
}

mLayer->endEditCommand();

// 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 ) );
}

void QgsAttributeTableDialog::replaceSearchWidget( QWidget* oldw, QWidget* neww )

0 comments on commit d6a39e9

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