forked from qt-creator/qt-creator
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:
@@ -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.
|
||||
|
||||
@@ -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()};
|
||||
|
||||
@@ -47,7 +47,6 @@ public:
|
||||
void requestX11Forwarding(const QString &displayName);
|
||||
void start();
|
||||
|
||||
bool isRunning() const;
|
||||
Utils::CommandLine fullLocalCommandLine() const;
|
||||
|
||||
signals:
|
||||
|
||||
Reference in New Issue
Block a user