Skip to content
Permalink
Browse files

disable the attribute table's "toggle editing" button when the layer …

…is read-only

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14661 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
brushtyler
brushtyler committed Nov 14, 2010
1 parent e64706b commit e3ebb62669128c243588f8b15d06188cec9ddec6
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/attributetable/qgsattributetabledialog.cpp
@@ -101,7 +101,7 @@ QgsAttributeTableDialog::QgsAttributeTableDialog( QgsVectorLayer *theLayer, QWid
bool canDeleteAttributes = mLayer->dataProvider()->capabilities() & QgsVectorDataProvider::DeleteAttributes;
mToggleEditingButton->setCheckable( true );
mToggleEditingButton->setChecked( mLayer->isEditable() );
mToggleEditingButton->setEnabled( canChangeAttributes );
mToggleEditingButton->setEnabled( canChangeAttributes && !mLayer->isReadOnly() );
mOpenFieldCalculator->setEnabled( canChangeAttributes && mLayer->isEditable() );
mDeleteSelectedButton->setEnabled( canDeleteFeatures && mLayer->isEditable() );
mAddAttribute->setEnabled( canAddAttributes && mLayer->isEditable() );

0 comments on commit e3ebb62

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