mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 01:40:02 +00:00
SearchBox: Baloo now only searches through Files
We no longer need to explicitly state files
This commit is contained in:
parent
44ac6bd5f8
commit
9456584597
|
@ -439,7 +439,6 @@ QUrl DolphinSearchBox::balooUrlForSearching() const
|
|||
const QString text = m_searchInput->text();
|
||||
|
||||
Baloo::Query query;
|
||||
query.addType("File");
|
||||
query.addType(m_facetsWidget->facetType());
|
||||
|
||||
Baloo::Term term(Baloo::Term::And);
|
||||
|
@ -488,7 +487,6 @@ void DolphinSearchBox::fromBalooSearchUrl(const QUrl& url)
|
|||
setText(query.searchString());
|
||||
|
||||
QStringList types = query.types();
|
||||
types.removeOne("File"); // We are only interested in facet widget types
|
||||
if (!types.isEmpty()) {
|
||||
m_facetsWidget->setFacetType(types.first());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue