Skip to content

Commit

Permalink
Fix for display of 'saveAsShapefile' for layers which don't support t…
Browse files Browse the repository at this point in the history
…his operation

git-svn-id: http://svn.osgeo.org/qgis/trunk@6134 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Nov 27, 2006
1 parent ac147d1 commit 919324b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/legend/qgslegend.cpp
Expand Up @@ -438,7 +438,7 @@ void QgsLegend::handleRightClickEvent(QTreeWidgetItem* item, const QPoint& posit
}
else
{
if(theVectorLayer->getDataProvider()->capabilities() | QgsVectorDataProvider::SaveAsShapefile)
if(theVectorLayer->getDataProvider()->capabilities() & QgsVectorDataProvider::SaveAsShapefile)
{
theMenu.addAction(tr("&Save as shapefile..."), this, SLOT(legendLayerSaveAsShapefile()));
}
Expand Down

0 comments on commit 919324b

Please sign in to comment.