edit-dialog: remove useless code

I'm not really sure of this one, but it seems very correct. At least, things work now.