make sure any editor is removed when calling discardEditor for the main window controller, as abortEditing does not properly call the delegate methods
make sure any editor is removed when calling discardEditor for the main window controller, as abortEditing does not properly call the delegate methods

git-svn-id: 765db44a9620ed55f4f8addfd3c14fe8cd57f6bb@6807 0fceea05-a30d-0410-8a8b-80ef821fb0a1

nanoant/Skim,nanoant/Skim,nanoant/Skim,nanoant/Skim,nanoant/Skim