Clear selection on undo/redo to avoid potential crashes
Merge branch 'master' of https://github.com/sirjuddington/SLADE into osx