setType not calls notify instead of dataChanged as bindings to selectedItem.department do not get notified by dataChange calls
wm.job now test for isDestroyed
Fixes call to makeEditor which lacked a new parameter