DolphinSearchBox: Only search through filename is search text is not empty

This commit is contained in:
Vishesh Handa 2014-03-24 10:37:15 +01:00
parent 466868efa8
commit 3e576a1659

View file

@ -447,7 +447,7 @@ KUrl DolphinSearchBox::balooUrlForSearching() const
if (m_contentButton->isChecked()) {
query.setSearchString(text);
} else {
} else if (!text.isEmpty()) {
term.addSubTerm(Baloo::Term(QLatin1String("filename"), text));
}