Dialog windows open conditionally

A change in how the dialog opening actions are called for.