From 219c3372aebdb947d6604872ce504f20a5ab8123 Mon Sep 17 00:00:00 2001
From: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Date: Tue, 8 Mar 2011 18:28:58 +0100
Subject: [PATCH] revalidate when the expected kind changes

otherwise the initial value set before the kind was set will be
displayed as validated by the default kind's rules.
---
 src/libs/utils/pathchooser.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/libs/utils/pathchooser.cpp b/src/libs/utils/pathchooser.cpp
index c103c4b04aa..9b28e2c36a0 100644
--- a/src/libs/utils/pathchooser.cpp
+++ b/src/libs/utils/pathchooser.cpp
@@ -490,7 +490,10 @@ QString PathChooser::homePath()
 
 void PathChooser::setExpectedKind(Kind expected)
 {
+    if (m_d->m_acceptingKind == expected)
+        return;
     m_d->m_acceptingKind = expected;
+    m_d->m_lineEdit->triggerChanged();
 }
 
 PathChooser::Kind PathChooser::expectedKind() const
-- 
GitLab