Skip to content
Permalink
Browse files

Fix for attribute table not updating when using the add / remove buttons

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11930 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Nov 6, 2009
1 parent bcda746 commit b63be1d9d2681b849c74025b2b11c8dbe81a450b
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/app/attributetable/qgsattributetabledialog.cpp
@@ -588,6 +588,8 @@ void QgsAttributeTableDialog::on_mAddAttribute_clicked()
QMessageBox::critical( 0, tr( "Attribute Error" ), tr( "The attribute could not be added to the layer" ) );
mLayer->destroyEditCommand();
}
// update model - a field has been added or updated
mModel->reload( mModel->index( 0, 0 ), mModel->index( mModel->rowCount(), mModel->columnCount() ) );
}
}

@@ -627,6 +629,8 @@ void QgsAttributeTableDialog::on_mRemoveAttribute_clicked()
QMessageBox::critical( 0, tr( "Attribute Error" ), tr( "The attribute(s) could not be deleted" ) );
mLayer->destroyEditCommand();
}
// update model - a field has been added or updated
mModel->reload( mModel->index( 0, 0 ), mModel->index( mModel->rowCount(), mModel->columnCount() ) );
}
}

0 comments on commit b63be1d

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