Make toolbuttons enable only when they can work correct.