Utils/Ssh: Move SshRemoteProces::isRunning() to QtcProcess base

... and use it on a few places.

Change-Id: Id2cea709e355a46821a720e593740ac032888ced
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
hjk
2021-11-22 11:21:35 +01:00
parent 9c0bc16e94
commit e64ce914f9
11 changed files with 20 additions and 20 deletions

View File

@@ -97,7 +97,7 @@ struct SftpSession::SftpSessionPrivate
return;
if (pendingCommands.empty())
return;
QTC_ASSERT(sftpProc.state() == QProcess::Running, return);
QTC_ASSERT(sftpProc.isRunning(), return);
activeCommand = pendingCommands.dequeue();
// The second newline forces the prompt to appear after the command has finished.

View File

@@ -116,11 +116,6 @@ void SshRemoteProcess::start()
doStart();
}
bool SshRemoteProcess::isRunning() const
{
return state() == QProcess::Running;
}
Utils::CommandLine SshRemoteProcess::fullLocalCommandLine() const
{
Utils::CommandLine cmd{SshSettings::sshFilePath()};

View File

@@ -47,7 +47,6 @@ public:
void requestX11Forwarding(const QString &displayName);
void start();
bool isRunning() const;
Utils::CommandLine fullLocalCommandLine() const;
signals: