mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-24 00:47:57 -05:00
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
This commit is contained in:
parent
a13227ea34
commit
b890bc5fa4
@ -58,6 +58,10 @@ QgsAttributeTableDisplay::QgsAttributeTableDisplay(QgsVectorLayer* layer, QgisAp
|
||||
connect(btnAdvancedSearch, SIGNAL(clicked()), this, SLOT(advancedSearch()));
|
||||
connect(btnClose, SIGNAL(clicked()), this, SLOT(close()));
|
||||
|
||||
//disable those buttons until start editing has been pressed and provider supports it
|
||||
mAddAttributeButton->setEnabled(false);
|
||||
mDeleteAttributeButton->setEnabled(false);
|
||||
|
||||
btnStopEditing->setEnabled(false);
|
||||
int cap=layer->getDataProvider()->capabilities();
|
||||
if((cap&QgsVectorDataProvider::ChangeAttributeValues)
|
||||
|
Loading…
x
Reference in New Issue
Block a user