SshRemoteProcess: Get rid of error arg from done() signal

Prepare for signal rename done() -> finished().

Change-Id: I81a7bd0a4826ce6200f4af47ba5868ceedb42206
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Jarek Kobus
2022-02-28 14:11:49 +01:00
parent fc3b9b5ab3
commit 7b5dfcd6cd
11 changed files with 22 additions and 22 deletions

View File

@@ -95,10 +95,10 @@ void Shell::handleRemoteStderr()
std::cerr << m_shell->readAllStandardError().data() << std::flush;
}
void Shell::handleChannelClosed(const QString &error)
void Shell::handleChannelClosed()
{
std::cerr << "Shell closed. Exit code was " << m_shell->exitCode() << "." << std::endl;
QCoreApplication::exit(error.isEmpty() && m_shell->exitCode() == 0
QCoreApplication::exit(m_shell->errorString().isEmpty() && m_shell->exitCode() == 0
? EXIT_SUCCESS : EXIT_FAILURE);
}

View File

@@ -50,7 +50,7 @@ private:
void handleRemoteStdout();
void handleRemoteStderr();
void handleShellMessage(const QString &message);
void handleChannelClosed(const QString &error);
void handleChannelClosed();
void handleShellStarted();
void handleStdin();