aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/languageclient/languageclientinterface.cpp
diff options
context:
space:
mode:
authorhjk <[email protected]>2023-01-27 12:30:03 +0100
committerhjk <[email protected]>2023-01-27 12:37:35 +0000
commitdab859e7762cf3a9566f35b1bd3f2186a47d2bcb (patch)
treea55fe23bc6a2010f1eccb1fa3c07c207e487333e /src/plugins/languageclient/languageclientinterface.cpp
parent930cbdf68b7697435fcdc6726869a4f77066a0f7 (diff)
Utils: Replace Environment.isValid() with .hasChanges()
That's closer to the intended semantics. The "other" use in docker will be changed to an optional<Environment> as follow-up to keep this here mechanical. Change-Id: I43ef9da6c9c7731b28f9d6fab6413ce9c4f428b4 Reviewed-by: Christian Kandeler <[email protected]>
Diffstat (limited to 'src/plugins/languageclient/languageclientinterface.cpp')
-rw-r--r--src/plugins/languageclient/languageclientinterface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/languageclient/languageclientinterface.cpp b/src/plugins/languageclient/languageclientinterface.cpp
index 517e466196b..541d1c3ab05 100644
--- a/src/plugins/languageclient/languageclientinterface.cpp
+++ b/src/plugins/languageclient/languageclientinterface.cpp
@@ -113,7 +113,7 @@ void StdIOClientInterface::startImpl()
m_logFile.write(QString("Starting server: %1\nOutput:\n\n").arg(m_cmd.toUserOutput()).toUtf8());
m_process->setCommand(m_cmd);
m_process->setWorkingDirectory(m_workingDirectory);
- if (m_env.isValid())
+ if (m_env.hasChanges())
m_process->setEnvironment(m_env);
m_process->start();
}