Skip to content

Commit 919324b

Browse files
author
mhugent
committed
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
1 parent ac147d1 commit 919324b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/legend/qgslegend.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ void QgsLegend::handleRightClickEvent(QTreeWidgetItem* item, const QPoint& posit
438438
}
439439
else
440440
{
441-
if(theVectorLayer->getDataProvider()->capabilities() | QgsVectorDataProvider::SaveAsShapefile)
441+
if(theVectorLayer->getDataProvider()->capabilities() & QgsVectorDataProvider::SaveAsShapefile)
442442
{
443443
theMenu.addAction(tr("&Save as shapefile..."), this, SLOT(legendLayerSaveAsShapefile()));
444444
}

0 commit comments

Comments
 (0)