Inverted the value passed to the method buttonChanged in order to set th...

...e correct button state and trigger the correct event.