From 7e24df13550517f495f2de57055f8b62f5460d0a Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Wed, 5 Mar 2014 12:35:55 +0100 Subject: [PATCH] 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 not. Change-Id: I3fcb9683296113e04f7a78bb2d3ae681f6603823 Reviewed-by: Daniel Teske --- src/libs/utils/pathchooser.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libs/utils/pathchooser.cpp b/src/libs/utils/pathchooser.cpp index 58aac82954c..22a75f3b91c 100644 --- a/src/libs/utils/pathchooser.cpp +++ b/src/libs/utils/pathchooser.cpp @@ -302,14 +302,17 @@ FileName PathChooser::baseFileName() const void PathChooser::setBaseFileName(const FileName &base) { d->m_baseDirectory = base.toString(); + triggerChanged(); } void PathChooser::setEnvironment(const Utils::Environment &env) { QString oldExpand = path(); d->m_environment = env; - if (path() != oldExpand) + if (path() != oldExpand) { + triggerChanged(); emit changed(rawPath()); + } } QString PathChooser::path() const