Commit 7616a5c2 authored by Scott Wheeler's avatar Scott Wheeler

Update the searched columns when setting the search component.

svn path=/trunk/kdemultimedia/juk/; revision=304813
parent e5ff0a0f
......@@ -102,6 +102,13 @@ void SearchLine::setSearchComponent(const PlaylistSearch::Component &component)
if(m_caseSensitive)
m_caseSensitive->setCurrentItem(Pattern);
}
if(!m_simple) {
if(component.columns().isEmpty() || component.columns().size() > 1)
m_searchFieldsBox->setCurrentItem(0);
else
m_searchFieldsBox->setCurrentItem(component.columns().front() + 1);
}
}
void SearchLine::clear()
......
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