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/qgis@6134 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Nov 27, 2006
1 parent 8e9ef99 commit a482226
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 a482226

Please sign in to comment.