Skip to content
Permalink
Browse files

fix #2025

git-svn-id: http://svn.osgeo.org/qgis/trunk@11824 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Oct 21, 2009
1 parent b2e9984 commit dc92ab0f2b6222af88e859ce2fcc623b95e5158c
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/app/qgisapp.cpp
@@ -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 );
}

0 comments on commit dc92ab0

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