Fix bug in DialogWithSections: Dialog settings not saved!