┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/search/dolphinsearchbox.cpp
diff options
context:
space:
mode:
authorVishesh Handa <[email protected]>2014-03-24 10:37:15 +0100
committerVishesh Handa <[email protected]>2014-03-24 10:37:59 +0100
commit3e576a16597b154a137604efd16323e1a1338f60 (patch)
tree0e9be1c222ed4827c9f0bbef86c2c61c7fd8a50e /src/search/dolphinsearchbox.cpp
parent466868efa81ea7597f96d06ff1e2015f4ff8169a (diff)
DolphinSearchBox: Only search through filename is search text is not empty
Diffstat (limited to 'src/search/dolphinsearchbox.cpp')
-rw-r--r--src/search/dolphinsearchbox.cpp2
1 files changed, 1 insertions, 1 deletions
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));
}