You onaddbutton_clicked() creates a new array of buttons every time, maybe you disabled only one of these sets.

Cheers,
_