forked from qt-creator/qt-creator
Deviceshell: Cleanup shellProcess destruction
Change-Id: I71507d9e74979fca461784575257e7bafd1b4838 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -814,7 +814,7 @@ public:
|
||||
cmd.addArg("/bin/sh");
|
||||
|
||||
m_shell.reset(new LinuxDeviceShell(cmd));
|
||||
connect(m_shell.get(), &DeviceShell::done, this, [this] { m_shell.reset(); });
|
||||
connect(m_shell.get(), &DeviceShell::done, this, [this] { m_shell.release()->deleteLater(); });
|
||||
return m_shell->start();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user