User check on file open

Re-arranged the check() call inside focus() so the user can see who's using the file when you open a file, not just on tab changes.
Merge pull request #633 from RustyGumbo/master

User check on file open