mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-12 00:02:25 -04:00
fix #2064
git-svn-id: http://svn.osgeo.org/qgis/trunk@12010 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
5e73ca5479
commit
b9d012fdc5
@ -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() );
|
||||
|
Loading…
x
Reference in New Issue
Block a user