Skip to content

Commit

Permalink
fix #2025
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11824 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Oct 21, 2009
1 parent b5698ba commit 4dd9ac6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/app/qgisapp.cpp
Expand Up @@ -5577,8 +5577,10 @@ void QgisApp::activateDeactivateLayerRelatedActions( QgsMapLayer* layer )
}

//merge tool needs editable layer and provider with the capability of adding and deleting features
if ( vlayer->isEditable() && ( dprovider->capabilities() & QgsVectorDataProvider::DeleteFeatures ) \
&& QgsVectorDataProvider::AddFeatures )
if ( vlayer->isEditable() &&
(dprovider->capabilities() & QgsVectorDataProvider::DeleteFeatures) &&
(dprovider->capabilities() & QgsVectorDataProvider::ChangeAttributeValues) &&
(dprovider->capabilities() & QgsVectorDataProvider::AddFeatures) )
{
mActionMergeFeatures->setEnabled( layerHasSelection );
}
Expand Down

0 comments on commit 4dd9ac6

Please sign in to comment.