Disable actions on selection changes

@dinhviethoa 

Fixes #2460 
hmmm you probably need it.