diff options
author | Daniel d'Andrada <daniel.dandrada@canonical.com> | 2015-06-15 17:43:49 -0300 |
---|---|---|
committer | Daniel d'Andrada <daniel.dandrada@canonical.com> | 2015-06-15 17:43:49 -0300 |
commit | 447204fb2d469d475da4be412973c4974c1f5b24 (patch) | |
tree | 0d7eec11fe33a1256885063673c8c360cb593848 /src | |
parent | 100f75f4c65521e0f23964bd7c9d6b7e1d0fb62c (diff) |
Remove redundant variable
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/Unity/Application/application_manager.cpp | 7 |
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); } |