]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/search/dolphinsearchbox.cpp
DolphinSearchBox: Only search through filename is search text is not empty
[dolphin.git] / 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));
     }