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 <christian.kandeler@qt.io>
This commit is contained in:
hjk
2023-01-27 12:30:03 +01:00
parent 930cbdf68b
commit dab859e776
12 changed files with 14 additions and 14 deletions

View File

@@ -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();
}