forked from qt-creator/qt-creator
Utils: Replace FilePath part setters
... by a combined version. This will make it easier to store the parts in one QString object. Change-Id: Ie85a77e3957c78a30e49998fe2e617af35a8ad17 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -82,7 +82,8 @@ FilePath ProcessParameters::effectiveWorkingDirectory() const
|
||||
QString path = m_workingDirectory.path();
|
||||
if (m_macroExpander)
|
||||
path = m_macroExpander->expand(path);
|
||||
m_effectiveWorkingDirectory.setPath(QDir::cleanPath(m_environment.expandVariables(path)));
|
||||
m_effectiveWorkingDirectory =
|
||||
m_effectiveWorkingDirectory.withNewPath(QDir::cleanPath(m_environment.expandVariables(path)));
|
||||
}
|
||||
return m_effectiveWorkingDirectory;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user