Issue 348 - Fixed bug when updating badge in response to preference change

--HG--
extra : rebase_source : 4aa25a36a2ac8c48044e752cac444c1fc2bb3d2d