diff options
author | Bernd Weimer <bernd.weimer@pelagicore.com> | 2017-11-13 17:12:13 +0100 |
---|---|---|
committer | Bernd Weimer <bernd.weimer@pelagicore.com> | 2017-11-14 07:58:50 +0000 |
commit | 08b92b0281cd28f65837078bb1e30981e879b393 (patch) | |
tree | 2cb80bca50b852d71823f6604ad5cc0769de3d4c | |
parent | dc964f16faa3d91129610ee8fd75a6385af03dd2 (diff) | |
download | qtapplicationmanager-08b92b0281cd28f65837078bb1e30981e879b393.tar.gz |
Fix stopAllApplications()
Call stop() method only once for each runtime.
Change-Id: Ib7c6b6d0e7504792327f4f532fbf5e01e49e38f5
Reviewed-by: Gordan Markus <gordan.markus@pelagicore.com>
-rw-r--r-- | src/manager-lib/applicationmanager.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/manager-lib/applicationmanager.cpp b/src/manager-lib/applicationmanager.cpp index 2924dc15..f15b57b4 100644 --- a/src/manager-lib/applicationmanager.cpp +++ b/src/manager-lib/applicationmanager.cpp @@ -927,9 +927,11 @@ void ApplicationManager::stopApplication(const QString &id, bool forceKill) void ApplicationManager::stopAllApplications(bool forceKill) { for (const Application *app : qAsConst(d->apps)) { - AbstractRuntime *rt = app->currentRuntime(); - if (rt) - rt->stop(forceKill); + if (!app->isAlias()) { + AbstractRuntime *rt = app->currentRuntime(); + if (rt) + rt->stop(forceKill); + } } } |