ProjectExplorer: Return a ProcessHandle for AppLauncher::applicationPID

Change-Id: I00fc4dbd3a3c022006de95087b61a86bbb83faeb
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
hjk
2017-03-09 16:18:58 +01:00
parent c63805668f
commit fa67aa084b
6 changed files with 11 additions and 10 deletions

View File

@@ -786,7 +786,7 @@ void PythonRunControl::start()
r.environment = m_environment;
m_applicationLauncher.start(r);
setApplicationProcessHandle(ProcessHandle(m_applicationLauncher.applicationPID()));
setApplicationProcessHandle(m_applicationLauncher.applicationPID());
}
}
@@ -804,7 +804,7 @@ void PythonRunControl::slotAppendMessage(const QString &err, Utils::OutputFormat
void PythonRunControl::processStarted()
{
// Console processes only know their pid after being started
setApplicationProcessHandle(ProcessHandle(m_applicationLauncher.applicationPID()));
setApplicationProcessHandle(m_applicationLauncher.applicationPID());
bringApplicationToForeground();
}