Skip to content
Permalink
Browse files

follow up e8061c7

  • Loading branch information
alexbruy committed Oct 3, 2012
1 parent eeefecf commit 7bff3cfb3a06e8276f59aa0ac547701cf45850d7
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/app/qgsvectorlayerproperties.cpp
@@ -110,7 +110,7 @@ QgsVectorLayerProperties::QgsVectorLayerProperties(
if ( layer->hasGeometryType() )
{
// Create the Labeling dialog tab
layout= new QVBoxLayout( labelingFrame );
layout = new QVBoxLayout( labelingFrame );
layout->setMargin( 0 );
labelingDialog = new QgsLabelingGui( QgisApp::instance()->palLabeling(), layer, QgisApp::instance()->mapCanvas(), labelingFrame );
layout->addWidget( labelingDialog );
@@ -470,10 +470,12 @@ void QgsVectorLayerProperties::updateButtons()
}
else
{
int cap = layer->dataProvider()->capabilities();
bool canChangeAttributes = cap & QgsVectorDataProvider::ChangeAttributeValues;
mAddAttributeButton->setEnabled( false );
mDeleteAttributeButton->setEnabled( false );
mToggleEditingButton->setChecked( false );
mToggleEditingButton->setEnabled( false );
mToggleEditingButton->setEnabled( canChangeAttributes && !layer->isReadOnly() );
mCalculateFieldButton->setEnabled( false );
}
}

0 comments on commit 7bff3cf

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