summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules/Unity/Application/application_manager.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/modules/Unity/Application/application_manager.cpp b/src/modules/Unity/Application/application_manager.cpp
index 102a266..1014a3d 100644
--- a/src/modules/Unity/Application/application_manager.cpp
+++ b/src/modules/Unity/Application/application_manager.cpp
@@ -407,20 +407,15 @@ void ApplicationManager::onProcessStarting(const QString &appId)
Q_EMIT focusRequested(appId);
}
else {
- bool shouldRequestFocus = false;
if (application->state() == Application::Stopped) {
// url-dispatcher can relaunch apps which have been OOM-killed - AppMan must accept the newly spawned
// application and focus it immediately (as user expects app to still be running).
qCDebug(QTMIR_APPLICATIONS) << "Stopped application appId=" << appId << "is being resumed externally";
- shouldRequestFocus = true;
+ Q_EMIT focusRequested(appId);
} else {
qCDebug(QTMIR_APPLICATIONS) << "ApplicationManager::onProcessStarting application already found with appId"
<< appId;
}
-
- if (shouldRequestFocus) {
- Q_EMIT focusRequested(appId);
- }
}
application->setProcessState(Application::ProcessRunning);
}