return this logic to where it used to be, *after* the dialog->needdestroy flag has...