Skip to content
Permalink
Browse files

[QgsActionMenu] use correct level of actions

  • Loading branch information
3nids committed Sep 16, 2014
1 parent 399fa99 commit ab228902fd3e27784446b20a77fb326459e26dbd
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/gui/qgsactionmenu.cpp
@@ -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() );
}
@@ -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 )
{

0 comments on commit ab22890

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