Skip to content

Commit b890bc5

Browse files
author
mhugent
committedMar 21, 2007
Disable add attribute and delete attribute buttons in attribute table until start editing is pressed and the data provider supports these operation
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6825 c8812cc2-4d05-0410-92ff-de0c093fc19c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎src/app/qgsattributetabledisplay.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ QgsAttributeTableDisplay::QgsAttributeTableDisplay(QgsVectorLayer* layer, QgisAp
5858
connect(btnAdvancedSearch, SIGNAL(clicked()), this, SLOT(advancedSearch()));
5959
connect(btnClose, SIGNAL(clicked()), this, SLOT(close()));
6060

61+
//disable those buttons until start editing has been pressed and provider supports it
62+
mAddAttributeButton->setEnabled(false);
63+
mDeleteAttributeButton->setEnabled(false);
64+
6165
btnStopEditing->setEnabled(false);
6266
int cap=layer->getDataProvider()->capabilities();
6367
if((cap&QgsVectorDataProvider::ChangeAttributeValues)

0 commit comments

Comments
 (0)
Please sign in to comment.