diff --git a/src/search/dolphinsearchbox.cpp b/src/search/dolphinsearchbox.cpp index e6b738a931..9aba4c9541 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)); }