Disable actions on selection changes

@dinhviethoa 

Fixes #2460 
when reloadData is called below, the selection should be updated accordingly (and therefore empty).
You shouldn't have to use setNodeExpanded(), additional setNodeExpanded() is not the correct method to reset a selection.