diff --git a/src/libs/utils/environment.cpp b/src/libs/utils/environment.cpp index 500b0166266..298987ee557 100644 --- a/src/libs/utils/environment.cpp +++ b/src/libs/utils/environment.cpp @@ -390,7 +390,8 @@ QList Environment::diff(const Environment &other) const result.append(EnvironmentItem(otherIt.key(), otherIt.value())); ++otherIt; } else { - result.append(EnvironmentItem(otherIt.key(), otherIt.value())); + if (thisIt.value() != otherIt.value()) + result.append(EnvironmentItem(otherIt.key(), otherIt.value())); ++otherIt; ++thisIt; }