aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/remotelinux
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2019-02-15 13:42:44 +0200
committerOrgad Shaneh <orgad.shaneh@audiocodes.com>2019-02-15 13:42:44 +0200
commit6fc532f812f62b7206ec5e958d251f7389cd6ecf (patch)
tree285bab3ac533c84a77dc173b195e8af4d8435869 /src/plugins/remotelinux
parent72d962e949564fc963f91e1b48350a091aea1bb2 (diff)
parent603191ba77852b64e5438c339bc39fcdc608cfb8 (diff)
Merge remote-tracking branch 'origin/4.9'
Diffstat (limited to 'src/plugins/remotelinux')
-rw-r--r--src/plugins/remotelinux/linuxdeviceprocess.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/remotelinux/linuxdeviceprocess.cpp b/src/plugins/remotelinux/linuxdeviceprocess.cpp
index 1dac2e44082..004ca63d2a9 100644
--- a/src/plugins/remotelinux/linuxdeviceprocess.cpp
+++ b/src/plugins/remotelinux/linuxdeviceprocess.cpp
@@ -42,6 +42,9 @@ LinuxDeviceProcess::LinuxDeviceProcess(const QSharedPointer<const ProjectExplore
: ProjectExplorer::SshDeviceProcess(device, parent), m_processId(0)
{
connect(this, &DeviceProcess::finished, this, [this]() {
+ m_processId = -1;
+ });
+ connect(this, &DeviceProcess::started, this, [this]() {
m_processId = 0;
});
}
@@ -70,7 +73,7 @@ QByteArray LinuxDeviceProcess::readAllStandardOutput()
qint64 LinuxDeviceProcess::processId() const
{
- return m_processId;
+ return m_processId < 0 ? 0 : m_processId;
}
QString LinuxDeviceProcess::fullCommandLine(const Runnable &runnable) const