The vote fulfils a promise by new PM PΓ©ter Magyar to stop his predecessor from becoming prime minister again.