Suffix project user file with value of QTC_EXTENSION if present

Value of environment variable QTC_EXTENSION used to be appended to
the name of the project user file. This patch brings back the old
behavior.

Change-Id: I5d15fd529b056f1a96a561924a41ae62ae4b2681
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Luca Carlon
2019-03-28 22:37:34 +01:00
parent 03d85e4217
commit 04f8c0946f

View File

@@ -377,7 +377,7 @@ QVariant UserFileAccessor::retrieveSharedSettings() const
FileName UserFileAccessor::projectUserFile() const
{
static const QString qtcExt = QLatin1String(qgetenv("QTC_SHARED_EXTENSION"));
static const QString qtcExt = QLatin1String(qgetenv("QTC_EXTENSION"));
FileName projectUserFile = m_project->projectFilePath();
projectUserFile.appendString(generateSuffix(qtcExt.isEmpty() ? ".user" : qtcExt));
return projectUserFile;