calling ClearFocus on the editor controls in the delegate's setModelData seems to prevent the crash.