mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
components/mobileshell: Ensure app pids are cleared
This commit is contained in:
parent
f3a4913147
commit
10dcf8b17a
1 changed files with 2 additions and 1 deletions
|
|
@ -110,7 +110,8 @@ bool ShellUtil::isLaunchingApp()
|
||||||
|
|
||||||
void ShellUtil::setLaunchingApp(KIO::ApplicationLauncherJob *launcherJob)
|
void ShellUtil::setLaunchingApp(KIO::ApplicationLauncherJob *launcherJob)
|
||||||
{
|
{
|
||||||
m_launchingApp = launcherJob;
|
m_launchingAppPids = {};
|
||||||
|
m_launchingApp = launcherJob; // do not assume that the pointer is valid, KJobs destroy themselves
|
||||||
connect(launcherJob, &KIO::ApplicationLauncherJob::result, this, [this](auto *job) {
|
connect(launcherJob, &KIO::ApplicationLauncherJob::result, this, [this](auto *job) {
|
||||||
m_launchingAppPids = m_launchingApp->pids();
|
m_launchingAppPids = m_launchingApp->pids();
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue