Skip to content
Permalink
Browse files

fix #2064

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12010 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Nov 8, 2009
1 parent a803eef commit d785d5988db2a663828faf3d8363a569dc61b844
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/app/attributetable/qgsattributetabledialog.cpp
@@ -98,6 +98,7 @@ QgsAttributeTableDialog::QgsAttributeTableDialog( QgsVectorLayer *theLayer, QWid
bool canAddAttributes = mLayer->dataProvider()->capabilities() & QgsVectorDataProvider::AddAttributes;
bool canDeleteAttributes = mLayer->dataProvider()->capabilities() & QgsVectorDataProvider::DeleteAttributes;
mToggleEditingButton->setCheckable( true );
mToggleEditingButton->setChecked( mLayer->isEditable() );
mToggleEditingButton->setEnabled( canChangeAttributes );
mOpenFieldCalculator->setEnabled( canChangeAttributes && mLayer->isEditable() );
mAddAttribute->setEnabled( canAddAttributes && mLayer->isEditable() );

0 comments on commit d785d59

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