Commit a1ab6520 authored by Marco Bubke's avatar Marco Bubke
Browse files

QmlDesigner.NodeInstances: Wait for killed process finishing

parent 425983ad
...@@ -121,6 +121,12 @@ NodeInstanceServerProxy::~NodeInstanceServerProxy() ...@@ -121,6 +121,12 @@ NodeInstanceServerProxy::~NodeInstanceServerProxy()
m_qmlPuppetPreviewProcess->blockSignals(true); m_qmlPuppetPreviewProcess->blockSignals(true);
m_qmlPuppetPreviewProcess->kill(); m_qmlPuppetPreviewProcess->kill();
} }
if (m_qmlPuppetEditorProcess && m_qmlPuppetEditorProcess->state() != QProcess::NotRunning)
m_qmlPuppetEditorProcess->waitForFinished(1000);
if (m_qmlPuppetPreviewProcess && m_qmlPuppetPreviewProcess->state() != QProcess::NotRunning)
m_qmlPuppetPreviewProcess->waitForFinished(1000);
} }
void NodeInstanceServerProxy::dispatchCommand(const QVariant &command) 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