Utils: Make working directory in Process::toStandaloneCommandLine work

The value for "-C" was never printed out. Let's fix that.

Change-Id: Id8f23867b586bfa6f017258cad96db071e819729
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Alessandro Portale
2024-05-16 12:36:45 +02:00
parent 53de9701f4
commit e8060ba97e

View File

@@ -1360,7 +1360,7 @@ QString Process::toStandaloneCommandLine() const
parts.append("/usr/bin/env");
if (!d->m_setup.m_workingDirectory.isEmpty()) {
parts.append("-C");
d->m_setup.m_workingDirectory.path();
parts.append(d->m_setup.m_workingDirectory.path());
}
parts.append("-i");
if (d->m_setup.m_environment.hasChanges()) {