summaryrefslogtreecommitdiff
path: root/src/plugins/projectexplorer/applicationlauncher.cpp
diff options
context:
space:
mode:
authorDaniel Teske <daniel.teske@nokia.com>2011-08-24 13:00:57 +0200
committerhjk <qthjk@ovi.com>2011-08-24 13:15:15 +0200
commitfbd9ae120fb53e36b63e75b68408edd8d2b2af7f (patch)
tree3e68896f17ab011dea356ba8f2472210496d6eef /src/plugins/projectexplorer/applicationlauncher.cpp
parent258727ab571d7bd707061643839005521180bc2c (diff)
downloadqt-creator-fbd9ae120fb53e36b63e75b68408edd8d2b2af7f.tar.gz
Enable attaching to console processes
The pid is not immediately set for console processes. setApplicationHandle needs to be called in response to the ConsoleProcess::processStarted signal. Change-Id: I957d829936c33eff004f348a832d95f50b909016 Reviewed-on: http://codereview.qt.nokia.com/3491 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'src/plugins/projectexplorer/applicationlauncher.cpp')
-rw-r--r--src/plugins/projectexplorer/applicationlauncher.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/applicationlauncher.cpp b/src/plugins/projectexplorer/applicationlauncher.cpp
index c9db836642..f19fe0d651 100644
--- a/src/plugins/projectexplorer/applicationlauncher.cpp
+++ b/src/plugins/projectexplorer/applicationlauncher.cpp
@@ -111,6 +111,8 @@ ApplicationLauncher::ApplicationLauncher(QObject *parent)
#ifdef Q_OS_UNIX
d->m_consoleProcess.setSettings(Core::ICore::instance()->settings());
#endif
+ connect(&d->m_consoleProcess, SIGNAL(processStarted()),
+ this, SIGNAL(processStarted()));
connect(&d->m_consoleProcess, SIGNAL(processError(QString)),
this, SLOT(consoleProcessError(QString)));
connect(&d->m_consoleProcess, SIGNAL(processStopped()),
@@ -273,6 +275,7 @@ void ApplicationLauncher::processDone(int exitCode, QProcess::ExitStatus)
void ApplicationLauncher::bringToForeground()
{
emit bringToForegroundRequested(applicationPID());
+ emit processStarted();
}
QString ApplicationLauncher::msgWinCannotRetrieveDebuggingOutput()