more bugfixing in field calculator

git-svn-id: http://svn.osgeo.org/qgis/trunk@12551 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
mhugent 2009-12-20 21:07:20 +00:00
parent 32ea3a2ae1
commit 668f4befbc

View File

@ -177,13 +177,13 @@ void QgsFieldCalculator::accept()
{
mVectorLayer->changeAttributeValue( feature.id(), attributeId, value.string(), false );
}
// stop blocking layerModified signals and make sure that one layerModified signal is emitted
mVectorLayer->blockSignals( false );
mVectorLayer->setModified( true, false );
}
// stop blocking layerModified signals and make sure that one layerModified signal is emitted
mVectorLayer->blockSignals( false );
mVectorLayer->setModified( true, false );
if ( !calculationSuccess )
{
QMessageBox::critical( 0, tr( "Error" ), tr( "An error occured while evaluating the calculation string." ) );