forked from qt-creator/qt-creator
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:
@@ -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());
|
||||||
|
|||||||
Reference in New Issue
Block a user