Skip to content
Permalink
Browse files

fix #2025

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11824 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Oct 21, 2009
1 parent b5698ba commit 4dd9ac6dd0454dd0fb9b778e233dfc65db3b6c48
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 4dd9ac6

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