Skip to content

Commit

Permalink
Disable 'create spatial index' fix for 0.9
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@6719 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Feb 27, 2007
1 parent 2ed9f06 commit dc61196
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/qgsvectorlayerproperties.cpp
Expand Up @@ -72,9 +72,9 @@ QgsVectorLayerProperties::QgsVectorLayerProperties(QgsVectorLayer * lyr,
if(layer->getDataProvider())//enable spatial index button group if supported by provider
{
int capabilities=layer->getDataProvider()->capabilities();
if(capabilities&QgsVectorDataProvider::CreateSpatialIndex)
if(!(capabilities&QgsVectorDataProvider::CreateSpatialIndex))
{
indexGroupBox->setEnabled(true);
indexGroupBox->setEnabled(false);
}
}

Expand Down

0 comments on commit dc61196

Please sign in to comment.