forked from qt-creator/qt-creator
GenericLinuxDeviceTester: Connect to QtcProcess::done() signal
Instead of connecting to errorOccurred() and finished() signals. Change-Id: I507b05cfc979db56ac7101432dd20acb68848d48 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -222,13 +222,8 @@ void GenericLinuxDeviceTester::handleSftpFinished(const QString &error)
|
|||||||
void GenericLinuxDeviceTester::testRsync()
|
void GenericLinuxDeviceTester::testRsync()
|
||||||
{
|
{
|
||||||
emit progressMessage(tr("Checking whether rsync works..."));
|
emit progressMessage(tr("Checking whether rsync works..."));
|
||||||
connect(&d->rsyncProcess, &QtcProcess::errorOccurred, [this] {
|
connect(&d->rsyncProcess, &QtcProcess::done, this,
|
||||||
if (d->rsyncProcess.error() == QProcess::FailedToStart)
|
&GenericLinuxDeviceTester::handleRsyncFinished);
|
||||||
handleRsyncFinished();
|
|
||||||
});
|
|
||||||
connect(&d->rsyncProcess, &QtcProcess::finished, this, [this] {
|
|
||||||
handleRsyncFinished();
|
|
||||||
});
|
|
||||||
const RsyncCommandLine cmdLine = RsyncDeployStep::rsyncCommand(*d->connection,
|
const RsyncCommandLine cmdLine = RsyncDeployStep::rsyncCommand(*d->connection,
|
||||||
RsyncDeployStep::defaultFlags());
|
RsyncDeployStep::defaultFlags());
|
||||||
const QStringList args = QStringList(cmdLine.options)
|
const QStringList args = QStringList(cmdLine.options)
|
||||||
|
Reference in New Issue
Block a user