summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@qt.io>2022-01-14 20:51:09 +0100
committerCristian Adam <cristian.adam@qt.io>2022-01-17 11:29:16 +0000
commit5effbc836f5147fd34f803df86b99c2389d3eef6 (patch)
tree99b111f3fb069bb8650f0d3005dc3bbf843f251d
parentc926db336b5db23622ce506092e1288d64164298 (diff)
downloadqt-creator-5effbc836f5147fd34f803df86b99c2389d3eef6.tar.gz
CMakePM: Do not sort kit CMake parameters
As a user when I add CMake parameters in the Kit's CMake section I expect the order of parameters not to change. If I add something at the end, I expect to find the value at the end. Change-Id: I4f0e2d9b845dddb7c9d6b012945ab61b0135267c Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
-rw-r--r--src/plugins/cmakeprojectmanager/cmakekitinformation.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/plugins/cmakeprojectmanager/cmakekitinformation.cpp b/src/plugins/cmakeprojectmanager/cmakekitinformation.cpp
index c2a6d7c009..602a956c2e 100644
--- a/src/plugins/cmakeprojectmanager/cmakekitinformation.cpp
+++ b/src/plugins/cmakeprojectmanager/cmakekitinformation.cpp
@@ -1006,7 +1006,6 @@ QStringList CMakeConfigurationKitAspect::toStringList(const Kit *k)
QStringList current = Utils::transform(CMakeConfigurationKitAspect::configuration(k).toList(),
[](const CMakeConfigItem &i) { return i.toString(); });
current = Utils::filtered(current, [](const QString &s) { return !s.isEmpty(); });
- Utils::sort(current);
return current;
}