Fix for display of 'saveAsShapefile' for layers which don't support this operation

git-svn-id: http://svn.osgeo.org/qgis/trunk@6134 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
mhugent 2006-11-27 08:03:55 +00:00
parent ac147d1a61
commit 919324b984

View File

@ -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()));
}