From: Vishesh Handa Date: Mon, 24 Mar 2014 09:37:15 +0000 (+0100) Subject: DolphinSearchBox: Only search through filename is search text is not empty X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/3e576a16597b154a137604efd16323e1a1338f60?ds=sidebyside DolphinSearchBox: Only search through filename is search text is not empty --- diff --git a/src/search/dolphinsearchbox.cpp b/src/search/dolphinsearchbox.cpp index e6b738a93..9aba4c954 100644 --- a/src/search/dolphinsearchbox.cpp +++ b/src/search/dolphinsearchbox.cpp @@ -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)); }