Skip to content

Commit

Permalink
[fix #11872] do not call activateLayerRelatedAction after selection c…
Browse files Browse the repository at this point in the history
…hange if layer is not current layer
  • Loading branch information
3nids committed Dec 18, 2014
1 parent c5d6f95 commit ddb37e2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/qgisapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8914,7 +8914,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

0 comments on commit ddb37e2

Please sign in to comment.