mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-12 12:54:29 +00:00
DolphinSearchBox: Only search through filename is search text is not empty
This commit is contained in:
parent
466868efa8
commit
3e576a1659
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue