Commit 219c3372 authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

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.
parent 64cfa461
......@@ -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
......
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