Skip to content
Permalink
Browse files

Removes 'toggle editing' from context menu of read-only layers. Fix #…

  • Loading branch information
suricactus authored and nyalldawson committed Dec 21, 2020
1 parent 3a865ad commit 7bd3603f4a78d8d19c95c3dcad5c0532f4898a19
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/app/qgsapplayertreeviewmenuprovider.cpp
@@ -240,8 +240,7 @@ QMenu *QgsAppLayerTreeViewMenuProvider::createContextMenu()

// allow editing
const QgsVectorDataProvider *provider = vlayer->dataProvider();
if ( provider &&
( provider->capabilities() & QgsVectorDataProvider::EditingCapabilities ) )
if ( vlayer->supportsEditing() )
{
if ( toggleEditingAction )
{

0 comments on commit 7bd3603

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