forked from qt-creator/qt-creator
SSH: Name SshRemoteProcess::ExitStatus values like the QProcess ones.
(We cannot use QProcess::ExitStatus itself, because it does not contain FailedToStart.) Change-Id: I83ed6de621e2693e539562cd8e56ef478fa4fcb9 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -88,13 +88,13 @@ void SshKeyDeployer::handleConnectionFailure()
|
||||
void SshKeyDeployer::handleKeyUploadFinished(int exitStatus)
|
||||
{
|
||||
Q_ASSERT(exitStatus == SshRemoteProcess::FailedToStart
|
||||
|| exitStatus == SshRemoteProcess::KilledBySignal
|
||||
|| exitStatus == SshRemoteProcess::ExitedNormally);
|
||||
|| exitStatus == SshRemoteProcess::CrashExit
|
||||
|| exitStatus == SshRemoteProcess::NormalExit);
|
||||
|
||||
const int exitCode = d->deployProcess.processExitCode();
|
||||
const QString errorMsg = d->deployProcess.processErrorString();
|
||||
cleanup();
|
||||
if (exitStatus == SshRemoteProcess::ExitedNormally && exitCode == 0)
|
||||
if (exitStatus == SshRemoteProcess::NormalExit && exitCode == 0)
|
||||
emit finishedSuccessfully();
|
||||
else
|
||||
emit error(tr("Key deployment failed: %1.").arg(errorMsg));
|
||||
|
||||
Reference in New Issue
Block a user