From 8816759a85f874b5386cb74e36bd452fa6b38752 Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Wed, 6 Apr 2022 14:23:56 +0200 Subject: [PATCH] GenericLinuxDeviceTester: Connect to QtcProcess::done() signal Instead of connecting to errorOccurred() and finished() signals. Change-Id: I507b05cfc979db56ac7101432dd20acb68848d48 Reviewed-by: hjk --- src/plugins/remotelinux/linuxdevicetester.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/plugins/remotelinux/linuxdevicetester.cpp b/src/plugins/remotelinux/linuxdevicetester.cpp index c427617c069..3b78818ed76 100644 --- a/src/plugins/remotelinux/linuxdevicetester.cpp +++ b/src/plugins/remotelinux/linuxdevicetester.cpp @@ -222,13 +222,8 @@ void GenericLinuxDeviceTester::handleSftpFinished(const QString &error) void GenericLinuxDeviceTester::testRsync() { emit progressMessage(tr("Checking whether rsync works...")); - connect(&d->rsyncProcess, &QtcProcess::errorOccurred, [this] { - if (d->rsyncProcess.error() == QProcess::FailedToStart) - handleRsyncFinished(); - }); - connect(&d->rsyncProcess, &QtcProcess::finished, this, [this] { - handleRsyncFinished(); - }); + connect(&d->rsyncProcess, &QtcProcess::done, this, + &GenericLinuxDeviceTester::handleRsyncFinished); const RsyncCommandLine cmdLine = RsyncDeployStep::rsyncCommand(*d->connection, RsyncDeployStep::defaultFlags()); const QStringList args = QStringList(cmdLine.options)