Skip to content
Permalink
Browse files

skip map layer actions with MultipleFeatures as target in the arttrib…

…ute table context menu
  • Loading branch information
3nids committed Feb 4, 2020
1 parent 644a552 commit 5f391ff6e9faa518df3110997cbce54359b3cb69
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/attributetable/qgsdualview.cpp
@@ -706,7 +706,7 @@ void QgsDualView::viewWillShowContextMenu( QMenu *menu, const QModelIndex &atInd
return;
}
//add actions from QgsMapLayerActionRegistry to context menu
QList<QgsMapLayerAction *> registeredActions = QgsGui::mapLayerActionRegistry()->mapLayerActions( mLayer );
QList<QgsMapLayerAction *> registeredActions = QgsGui::mapLayerActionRegistry()->mapLayerActions( mLayer, QgsMapLayerAction::Layer | QgsMapLayerAction::SingleFeature );
if ( !registeredActions.isEmpty() )
{
//add a separator between user defined and standard actions

0 comments on commit 5f391ff

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