]> cloud.milkyroute.net Git - dolphin.git/commitdiff
DolphinSearchBox: Only search through filename is search text is not empty
authorVishesh Handa <me@vhanda.in>
Mon, 24 Mar 2014 09:37:15 +0000 (10:37 +0100)
committerVishesh Handa <me@vhanda.in>
Mon, 24 Mar 2014 09:37:59 +0000 (10:37 +0100)
src/search/dolphinsearchbox.cpp

index e6b738a9314e91ffea14ea702721d0c30c156077..9aba4c9541d0c3f92bf5f2196a0edfbdac0d00c0 100644 (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));
     }