Search&Replace: Expand/collapse results if the expand-button is clicked
Before this patch, the state of the button was only used to
decide whether initially the results should be expanded or collapsed.
Now the user can just click the button and expand/collapse the
results tree.
Alex