Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[fix #11872] do not call activateLayerRelatedAction after selection c…
…hange if layer is not current layer
  • Loading branch information
3nids committed Dec 18, 2014
1 parent 64a6cf6 commit d288a53
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/qgisapp.cpp
Expand Up @@ -8972,7 +8972,10 @@ void QgisApp::selectionChanged( QgsMapLayer *layer )
{
showStatusMessage( tr( "%n feature(s) selected on layer %1.", "number of selected features", vlayer->selectedFeatureCount() ).arg( vlayer->name() ) );
}
activateDeactivateLayerRelatedActions( layer );
if ( layer == activeLayer() )
{
activateDeactivateLayerRelatedActions( layer );
}
}

void QgisApp::legendLayerSelectionChanged( void )
Expand Down

1 comment on commit d288a53

@3nids
Copy link
Member Author

@3nids 3nids commented on d288a53 Dec 18, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

backported to 2.6 ddb37e2

Please sign in to comment.