diff options
Diffstat (limited to 'api/logic/minecraft/launch/LauncherPartLaunch.cpp')
-rw-r--r-- | api/logic/minecraft/launch/LauncherPartLaunch.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/api/logic/minecraft/launch/LauncherPartLaunch.cpp b/api/logic/minecraft/launch/LauncherPartLaunch.cpp index bc71fe28..398b5515 100644 --- a/api/logic/minecraft/launch/LauncherPartLaunch.cpp +++ b/api/logic/minecraft/launch/LauncherPartLaunch.cpp @@ -40,6 +40,9 @@ void LauncherPartLaunch::executeTask() m_process.setProcessEnvironment(instance->createEnvironment()); + // make detachable - this will keep the process running even if the object is destroyed + m_process.setDetachable(true); + args << "-jar" << FS::PathCombine(QCoreApplication::applicationDirPath(), "jars", "NewLaunch.jar"); QString wrapperCommand = instance->getWrapperCommand(); |