Followup b53cab2, Edit dialog is not an add dialog
Fix #11036