aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/ssh/sshremoteprocess.cpp
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2022-01-28 12:08:09 +0100
committerJarek Kobus <jaroslaw.kobus@qt.io>2022-01-28 12:19:12 +0000
commit1d15a934cde9569835ff6a9470b8dd4e2276637d (patch)
treefebeb1b3571bfd018e408e521d6321f713a610c4 /src/libs/ssh/sshremoteprocess.cpp
parent5c53dc5e13396a8e105d77a7110f4fd5978f28e1 (diff)
QtcProcess: Get rid of useTerminal
Remove SshRemoteProcessRunner::runInTerminal() method, it wasn't used anywhere (just in test). Remove QtcProcess::useTerminal, as process should be created in TerminalOn mode when there is a need for terminal. Add a parameter to SshRemoteProcess::fullLocalCommandLine(bool inTerminal) as this may still be needed when running application through ssh from terminal (ssh -tt option). Change-Id: I71911082fcca190b82a1106a2ca1ca48dc5d4c79 Reviewed-by: hjk <hjk@qt.io> (cherry picked from commit 95a9b22f6fe07f8417ad94722d456d4a5730f068)
Diffstat (limited to 'src/libs/ssh/sshremoteprocess.cpp')
-rw-r--r--src/libs/ssh/sshremoteprocess.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libs/ssh/sshremoteprocess.cpp b/src/libs/ssh/sshremoteprocess.cpp
index 9b748c153a..bbfec939eb 100644
--- a/src/libs/ssh/sshremoteprocess.cpp
+++ b/src/libs/ssh/sshremoteprocess.cpp
@@ -89,13 +89,13 @@ void SshRemoteProcess::requestX11Forwarding(const QString &displayName)
m_displayName = displayName;
}
-Utils::CommandLine SshRemoteProcess::fullLocalCommandLine() const
+Utils::CommandLine SshRemoteProcess::fullLocalCommandLine(bool inTerminal) const
{
Utils::CommandLine cmd{SshSettings::sshFilePath()};
if (!m_displayName.isEmpty())
cmd.addArg("-X");
- if (useTerminal())
+ if (inTerminal)
cmd.addArg("-tt");
cmd.addArg("-q");