diff --git a/src/plugins/remotelinux/sshkeycreationdialog.cpp b/src/plugins/remotelinux/sshkeycreationdialog.cpp index cc57f2d24f8..7cf97c23d8a 100644 --- a/src/plugins/remotelinux/sshkeycreationdialog.cpp +++ b/src/plugins/remotelinux/sshkeycreationdialog.cpp @@ -97,7 +97,7 @@ void SshKeyCreationDialog::generateKeys() QString errorMsg; keygen.setCommand({SshSettings::keygenFilePath(), args}); keygen.start(); - if (!keygen.waitForStarted() || !keygen.waitForFinished()) + if (!keygen.waitForFinished()) errorMsg = keygen.errorString(); else if (keygen.exitCode() != 0) errorMsg = QString::fromLocal8Bit(keygen.readAllStandardError());