emit signal before document is closed
Merge branch 'master' of github.com:qcad/qcad