summaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2019-07-09 17:41:30 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2019-07-22 14:31:01 +0000
commit4d71c0f13e5854849a9836186f534dfab1ef9869 (patch)
tree3af786598de0a84221e20f9c3703bc8d8afee8c6 /src/app
parentb1dbd7e3580fb92879e0b3e0c9d21c1fd8dc4012 (diff)
downloadqt-creator-4d71c0f13e5854849a9836186f534dfab1ef9869.tar.gz
Let users disable environment entries
It's helpful to be able to temporarily disable environment variables, as opposed to having to remove (and then re-add) them entirely. Fixes: QTCREATORBUG-20984 Change-Id: Ib0d287035b9357507c4c19faaf3a1517382506b5 Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/app')
-rw-r--r--src/app/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app/main.cpp b/src/app/main.cpp
index 55ade01871..7e8552841d 100644
--- a/src/app/main.cpp
+++ b/src/app/main.cpp
@@ -408,7 +408,7 @@ int main(int argc, char **argv)
{{"LD_LIBRARY_PATH", "", Utils::EnvironmentItem::Unset}});
} else {
Utils::Environment::modifySystemEnvironment(
- {{"LD_LIBRARY_PATH", *options.userLibraryPath, Utils::EnvironmentItem::Set}});
+ {{"LD_LIBRARY_PATH", *options.userLibraryPath, Utils::EnvironmentItem::SetEnabled}});
}
}