Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
only display actions for single features in action menu
  • Loading branch information
3nids authored and nyalldawson committed Dec 9, 2020
1 parent bc5f739 commit 6eed9e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgisapp.cpp
Expand Up @@ -8188,7 +8188,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 6eed9e8

Please sign in to comment.