Setting previous selection in OnRegisterClear() to non-existent item (not added yet) caused crash in new version of wx. Rewrote type combo box creation/update code to prevent this and to separate view handling from model handling a bit.