From b07763c3f114165d89e9c62c796318c88b1c213c Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Wed, 29 Jun 2022 17:28:28 +0200 Subject: [PATCH] SshKeyCreationDialog: Get rid of call to waitForStarted() This is unneeded when followed by waitForFinished(). Change-Id: Ibeaeca8019ff3da98bedba75c96171b2a4ccc651 Reviewed-by: Christian Kandeler --- src/plugins/remotelinux/sshkeycreationdialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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());