Fix issue where closing object wouldn't deselect it
Merge pull request #310 from LocalData/deletefix

Fix issue where closing object wouldn't deselect it