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(); });