Skip to content

Commit

Permalink
only display actions for single features in action menu
Browse files Browse the repository at this point in the history
(cherry picked from commit 7f1601a)
  • Loading branch information
3nids authored and nyalldawson committed Dec 20, 2020
1 parent 0bb49e9 commit 4552a6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgisapp.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 4552a6c

Please sign in to comment.