mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-19 00:11:21 +00:00
DolphinSearchBox: Only search through filename is search text is not empty
This commit is contained in:
parent
0d11085c8b
commit
84d0b4719f
|
@ -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