Commit 7e24df13 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

PathChooser: Trigger revalidation when environment or base name change

Trigger a re-evaluation of the state when the base filename or the
environment changes. Both can effect whether a command is found or

Change-Id: I3fcb9683296113e04f7a78bb2d3ae681f6603823
Reviewed-by: default avatarDaniel Teske <>
parent 7f76ef3b
......@@ -302,14 +302,17 @@ FileName PathChooser::baseFileName() const
void PathChooser::setBaseFileName(const FileName &base)
d->m_baseDirectory = base.toString();
void PathChooser::setEnvironment(const Utils::Environment &env)
QString oldExpand = path();
d->m_environment = env;
if (path() != oldExpand)
if (path() != oldExpand) {
emit changed(rawPath());
QString PathChooser::path() const
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment