Skip to content
Permalink
Browse files

only display actions for single features in action menu

(cherry picked from commit 7f1601a)
  • Loading branch information
3nids authored and nyalldawson committed Dec 20, 2020
1 parent 0bb49e9 commit 4552a6c61bdfe434a6e232fda7e6da4bae388e7d
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/qgisapp.cpp
@@ -7367,7 +7367,7 @@ void QgisApp::refreshFeatureActions()
}

//add actions registered in QgsMapLayerActionRegistry
QList<QgsMapLayerAction *> registeredActions = QgsGui::mapLayerActionRegistry()->mapLayerActions( vlayer );
QList<QgsMapLayerAction *> registeredActions = QgsGui::mapLayerActionRegistry()->mapLayerActions( vlayer, QgsMapLayerAction::SingleFeature );
if ( !actions.isEmpty() && !registeredActions.empty() )
{
//add a separator between user defined and standard actions

0 comments on commit 4552a6c

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