single instance code changed to qlocalsocket from qsharedmemory