fix #1016847 - opened file can be reopened in different tab

This commit fixes this bug:
https://bugs.launchpad.net/notepadqq/+bug/1016847

before opening a file it check if it has already been opened in another tab.