disable Ctrl-C stub in debug build

Activating the controlcstub in a debug build will send Ctrl-C to
Qt Creator too, because he stub and Qt Creator share the same
Windows.
We're disabling the stub in debug builds. Cancelling a build
still works but takes a bit longer.

Task-number: QTCREATORBUG-11995
Change-Id: I766c2eac1f07205c411a7e4164e7d73b6c0441aa
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
Joerg Bornemann
2014-05-16 15:57:02 +02:00
parent a64a49ffcb
commit 3d38541b14
2 changed files with 11 additions and 1 deletions

View File

@@ -671,6 +671,16 @@ bool QtcProcess::prepareCommand(const QString &command, const QString &arguments
return true;
}
void QtcProcess::setUseCtrlCStub(bool enabled)
{
// Do not use the stub in debug mode. Activating the stub will shut down
// Qt Creator otherwise, because they share the same Windows console.
// See QTCREATORBUG-11995 for details.
#ifndef QT_DEBUG
m_useCtrlCStub = enabled;
#endif
}
void QtcProcess::start()
{
Environment env;