Fix crash when closing note editor
Merge pull request #612 from timrae/noteTypeChange

Fix crash when closing note editor