SshKeyCreationDialog: Get rid of call to waitForStarted()

This is unneeded when followed by waitForFinished().

Change-Id: Ibeaeca8019ff3da98bedba75c96171b2a4ccc651
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Jarek Kobus
2022-06-29 17:28:28 +02:00
parent e8cbfb7614
commit b07763c3f1

View File

@@ -97,7 +97,7 @@ void SshKeyCreationDialog::generateKeys()
QString errorMsg; QString errorMsg;
keygen.setCommand({SshSettings::keygenFilePath(), args}); keygen.setCommand({SshSettings::keygenFilePath(), args});
keygen.start(); keygen.start();
if (!keygen.waitForStarted() || !keygen.waitForFinished()) if (!keygen.waitForFinished())
errorMsg = keygen.errorString(); errorMsg = keygen.errorString();
else if (keygen.exitCode() != 0) else if (keygen.exitCode() != 0)
errorMsg = QString::fromLocal8Bit(keygen.readAllStandardError()); errorMsg = QString::fromLocal8Bit(keygen.readAllStandardError());