Fixed single-application instance issue using QSharedMemory since the single application class is deprecated