mirror of
https://invent.kde.org/marcoa/a-la-karte.git
synced 2026-03-26 17:03:08 +00:00
gamecenter: delete detached processes when they finish
This commit is contained in:
parent
6080962cf9
commit
88db54458e
1 changed files with 1 additions and 0 deletions
|
|
@ -895,6 +895,7 @@ void GameCenterDaemon::prepareForShutdown()
|
||||||
it.value().process = nullptr;
|
it.value().process = nullptr;
|
||||||
if (proc) {
|
if (proc) {
|
||||||
proc->disconnect(this);
|
proc->disconnect(this);
|
||||||
|
connect(proc, qOverload<int, QProcess::ExitStatus>(&QProcess::finished), proc, &QObject::deleteLater);
|
||||||
if (proc->state() != QProcess::NotRunning) {
|
if (proc->state() != QProcess::NotRunning) {
|
||||||
proc->setParent(nullptr);
|
proc->setParent(nullptr);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue