aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexander Drozdov <adrozdoff@gmail.com>2024-04-25 10:27:52 +1000
committerAlexander Drozdov <adrozdoff@gmail.com>2024-04-25 12:17:40 +0000
commit5c765e7c125ceba1d13d54ae0a452ff22d151c8e (patch)
tree04c0cdb82639f47a02c3d6f18a5ffce2221c794f /src
parent06cfa02c2d332d76789107f81638405356872b9e (diff)
ProjectExplorer: Fix environmentId overwriting with zero
When any settings on the Build & Run -> General page changed, then environmentId will be overwritted with Zero on settings save. It cause probles with any project opening: on each QtC run will be generated new environmentId that mismatch with environmentId in the .user files. As result, any local settings drops and project configuration starts from the scratch. Change-Id: I05e36cdad99b7d5373c8f9ff418d68998b3fd893 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/projectexplorer/projectexplorersettings.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/projectexplorersettings.cpp b/src/plugins/projectexplorer/projectexplorersettings.cpp
index 850b9b8dc9..5d4df2aecd 100644
--- a/src/plugins/projectexplorer/projectexplorersettings.cpp
+++ b/src/plugins/projectexplorer/projectexplorersettings.cpp
@@ -433,6 +433,7 @@ ProjectExplorerSettings ProjectExplorerSettingsWidget::settings() const
s.lowBuildPriority = m_lowBuildPriorityCheckBox->isChecked();
s.warnAgainstNonAsciiBuildDir = m_warnAgainstNonAsciiBuildDirCheckBox->isChecked();
s.appEnvChanges = m_appEnvChanges;
+ s.environmentId = projectExplorerSettings().environmentId;
return s;
}