Fix a crash when renaming a model entity.
Do not invoke closeEditor from within an item's delegate.
Note that this changes the behavior of the tab key to be unintuitive. However, I don't see a way to fix that cleanly without a lot more work (and/or a better understanding of Qt's MVC classes).