From 1a3cb067b804a5cc727fce72f1e02d59dd8b1842 Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Mon, 2 May 2022 14:00:42 +0200 Subject: [PATCH] SshProcessInterface: Give a parent to subobject This is needed when moving ProcessInterface beweeen threads. Change-Id: I26158c68bdc8e77ecb3e3d4535ba767ef3d0b63c Reviewed-by: hjk Reviewed-by: Marcus Tillmanns Reviewed-by: Qt CI Bot --- src/plugins/remotelinux/linuxdevice.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/remotelinux/linuxdevice.cpp b/src/plugins/remotelinux/linuxdevice.cpp index 0fd8c97e845..cc92d78c9b5 100644 --- a/src/plugins/remotelinux/linuxdevice.cpp +++ b/src/plugins/remotelinux/linuxdevice.cpp @@ -679,6 +679,7 @@ SshProcessInterfacePrivate::SshProcessInterfacePrivate(SshProcessInterface *sshI LinuxDevicePrivate *devicePrivate) : QObject(sshInterface) , q(sshInterface) + , m_process(this) , m_devicePrivate(devicePrivate) , m_device(m_devicePrivate->q->sharedFromThis()) { @@ -701,6 +702,7 @@ void SshProcessInterfacePrivate::start() if (SshSettings::connectionSharingEnabled()) { m_connecting = true; m_connectionHandle.reset(new SshConnectionHandle(m_devicePrivate->q->sharedFromThis())); + m_connectionHandle->setParent(this); connect(m_connectionHandle.get(), &SshConnectionHandle::connected, this, &SshProcessInterfacePrivate::handleConnected); connect(m_connectionHandle.get(), &SshConnectionHandle::disconnected,