From 9a4d6b4baae9ff736e574948721ed0eb4a9a8209 Mon Sep 17 00:00:00 2001 From: hjk Date: Thu, 20 Dec 2018 17:53:36 +0100 Subject: [PATCH] RemoteLinux: Add guards to some RsyncDeployStep connections Change-Id: Icfe8d21f1910eb140821fef0055390b985878651 Reviewed-by: Christian Kandeler --- src/plugins/remotelinux/rsyncdeploystep.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/plugins/remotelinux/rsyncdeploystep.cpp b/src/plugins/remotelinux/rsyncdeploystep.cpp index 3867c3faa0c..ba013bb6491 100644 --- a/src/plugins/remotelinux/rsyncdeploystep.cpp +++ b/src/plugins/remotelinux/rsyncdeploystep.cpp @@ -102,7 +102,7 @@ void RsyncDeployService::createRemoteDirectories() remoteDirs.removeDuplicates(); m_mkdir = connection()->createRemoteProcess("mkdir -p " + QtcProcess::Arguments ::createUnixArgs(remoteDirs).toString().toUtf8()); - connect(m_mkdir.get(), &SshRemoteProcess::done, [this](const QString &error) { + connect(m_mkdir.get(), &SshRemoteProcess::done, this, [this](const QString &error) { QString userError; if (!error.isEmpty()) userError = error; @@ -120,19 +120,19 @@ void RsyncDeployService::createRemoteDirectories() void RsyncDeployService::deployFiles() { - connect(&m_rsync, &QProcess::readyReadStandardOutput, [this] { + connect(&m_rsync, &QProcess::readyReadStandardOutput, this, [this] { emit progressMessage(QString::fromLocal8Bit(m_rsync.readAllStandardOutput())); }); - connect(&m_rsync, &QProcess::readyReadStandardError, [this] { + connect(&m_rsync, &QProcess::readyReadStandardError, this, [this] { emit warningMessage(QString::fromLocal8Bit(m_rsync.readAllStandardError())); }); - connect(&m_rsync, &QProcess::errorOccurred, [this] { + connect(&m_rsync, &QProcess::errorOccurred, this, [this] { if (m_rsync.error() == QProcess::FailedToStart) { emit errorMessage(tr("rsync failed to start: %1").arg(m_rsync.errorString())); setFinished(); } }); - connect(&m_rsync, static_cast(&QProcess::finished), [this] { + connect(&m_rsync, static_cast(&QProcess::finished), this, [this] { if (m_rsync.exitStatus() == QProcess::CrashExit) { emit errorMessage(tr("rsync crashed.")); setFinished();