From 10dcf8b17ad51ae462b4c38c23c62ba5ca07e0b2 Mon Sep 17 00:00:00 2001 From: Devin Lin Date: Wed, 12 Oct 2022 19:30:18 -0400 Subject: [PATCH] components/mobileshell: Ensure app pids are cleared --- components/mobileshell/shellutil.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/mobileshell/shellutil.cpp b/components/mobileshell/shellutil.cpp index 735f271a..374e4650 100644 --- a/components/mobileshell/shellutil.cpp +++ b/components/mobileshell/shellutil.cpp @@ -110,7 +110,8 @@ bool ShellUtil::isLaunchingApp() 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) { m_launchingAppPids = m_launchingApp->pids(); });