Skip to content

Commit

Permalink
[QgsActionMenu] use correct level of actions
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Sep 16, 2014
1 parent 399fa99 commit ab22890
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/qgsactionmenu.cpp
Expand Up @@ -104,7 +104,7 @@ void QgsActionMenu::triggerMapLayerAction( int index )
{
if ( feature() )
{
QgsMapLayerAction* action = QgsMapLayerActionRegistry::instance()->mapLayerActions( mLayer ).at( index );
QgsMapLayerAction* action = QgsMapLayerActionRegistry::instance()->mapLayerActions( mLayer, QgsMapLayerAction::Feature ).at( index );

action->triggerForFeature( mLayer, feature() );
}
Expand Down Expand Up @@ -148,7 +148,7 @@ void QgsActionMenu::reloadActions()
addAction( action );
}

QList<QgsMapLayerAction*> mapLayerActions = QgsMapLayerActionRegistry::instance()->mapLayerActions( mLayer );
QList<QgsMapLayerAction*> mapLayerActions = QgsMapLayerActionRegistry::instance()->mapLayerActions( mLayer, QgsMapLayerAction::SingleFeature );

if ( mapLayerActions.size() > 0 )
{
Expand Down

0 comments on commit ab22890

Please sign in to comment.