Commit 539da9fe authored by Marco Bubke's avatar Marco Bubke

QmlDesigner: Kill a process if terminate is not working

Task-number: QTCREATORBUG-12000
Change-Id: I44ccbabefa94fd0136941d3adae37e744df139d5
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent 066a45e1
......@@ -212,14 +212,20 @@ NodeInstanceServerProxy::~NodeInstanceServerProxy()
m_thirdSocket->abort();
}
if (m_qmlPuppetEditorProcess)
if (m_qmlPuppetEditorProcess) {
QTimer::singleShot(3000, m_qmlPuppetEditorProcess.data(), SLOT(terminate()));
QTimer::singleShot(6000, m_qmlPuppetEditorProcess.data(), SLOT(kill()));
}
if (m_qmlPuppetPreviewProcess)
if (m_qmlPuppetPreviewProcess) {
QTimer::singleShot(3000, m_qmlPuppetPreviewProcess.data(), SLOT(terminate()));
QTimer::singleShot(6000, m_qmlPuppetPreviewProcess.data(), SLOT(kill()));
}
if (m_qmlPuppetRenderProcess)
if (m_qmlPuppetRenderProcess) {
QTimer::singleShot(3000, m_qmlPuppetRenderProcess.data(), SLOT(terminate()));
QTimer::singleShot(6000, m_qmlPuppetRenderProcess.data(), SLOT(kill()));
}
}
void NodeInstanceServerProxy::dispatchCommand(const QVariant &command)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment