forked from qt-creator/qt-creator
Fix qml engine lockup when debugging an app run in terminal
The default timeout for the timer is set to 0 for projects that have the 'run in terminal' option checked in the run settings. Make sure that this timeout is set to a reasonable number once the first connect fails, before we retry. Task-number: QTCREATORBUG-8931 Change-Id: Iaa8acb50d76f182ceda77f8e6923738ad79ff445 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Aurindam Jana <aurindam.jana@digia.com>
This commit is contained in:
@@ -401,8 +401,10 @@ void QmlEngine::tryToConnect(quint16 port)
|
|||||||
if (state() == EngineRunRequested) {
|
if (state() == EngineRunRequested) {
|
||||||
if (isSlaveEngine()) {
|
if (isSlaveEngine()) {
|
||||||
// Probably cpp is being debugged and hence we did not get the output yet.
|
// Probably cpp is being debugged and hence we did not get the output yet.
|
||||||
if (!masterEngine()->isDying())
|
if (!masterEngine()->isDying()) {
|
||||||
|
m_noDebugOutputTimer.setInterval(4000);
|
||||||
m_noDebugOutputTimer.start();
|
m_noDebugOutputTimer.start();
|
||||||
|
}
|
||||||
else
|
else
|
||||||
appStartupFailed(tr("No application output received in time"));
|
appStartupFailed(tr("No application output received in time"));
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user