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)