Fixed single-application instance issue

this is how I'd do it in Win32API, but doesn't Qt have a message passing interface?