From 7ecf1e75d42e981a9f98e59742188ff6f712c024 Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Tue, 5 Jul 2011 16:15:05 +0200 Subject: [PATCH] QML debugging: Make sure the engine detects a remote process quitting. Change-Id: Ie41d327432b539264035f104081d4d4b02b56217 Reviewed-on: http://codereview.qt.nokia.com/1171 Reviewed-by: Christian Kandeler --- src/plugins/remotelinux/remotelinuxdebugsupport.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/plugins/remotelinux/remotelinuxdebugsupport.cpp b/src/plugins/remotelinux/remotelinuxdebugsupport.cpp index b7a86df3f7..b159e052c0 100644 --- a/src/plugins/remotelinux/remotelinuxdebugsupport.cpp +++ b/src/plugins/remotelinux/remotelinuxdebugsupport.cpp @@ -181,12 +181,16 @@ void AbstractRemoteLinuxDebugSupport::startExecution() void AbstractRemoteLinuxDebugSupport::handleRemoteProcessFinished(qint64 exitCode) { - if (!m_engine || m_state == Inactive || exitCode == 0) + if (!m_engine || m_state == Inactive) return; if (m_state == Debugging) { - if (m_debuggingType != RemoteLinuxRunConfiguration::DebugQmlOnly) + // The QML engine does not realize on its own that the application has finished. + if (m_debuggingType == RemoteLinuxRunConfiguration::DebugQmlOnly) + m_engine->quitDebugger(); + else if (exitCode != 0) m_engine->notifyInferiorIll(); + } else { const QString errorMsg = m_debuggingType == RemoteLinuxRunConfiguration::DebugQmlOnly ? tr("Remote application failed with exit code %1.").arg(exitCode) -- 2.11.0