[QGIS Commit] r12010 - trunk/qgis/src/app/attributetable
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Sun Nov 8 07:29:02 EST 2009
Author: jef
Date: 2009-11-08 07:29:02 -0500 (Sun, 08 Nov 2009)
New Revision: 12010
Modified:
trunk/qgis/src/app/attributetable/qgsattributetabledialog.cpp
Log:
fix #2064
Modified: trunk/qgis/src/app/attributetable/qgsattributetabledialog.cpp
===================================================================
--- trunk/qgis/src/app/attributetable/qgsattributetabledialog.cpp 2009-11-08 12:27:26 UTC (rev 12009)
+++ trunk/qgis/src/app/attributetable/qgsattributetabledialog.cpp 2009-11-08 12:29:02 UTC (rev 12010)
@@ -98,6 +98,7 @@
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() );
More information about the QGIS-commit
mailing list