Fix double clicking on layer visibility checkbox.