mirror of
https://invent.kde.org/system/dolphin
synced 2024-10-28 03:21:56 +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();
|
const QString text = m_searchInput->text();
|
||||||
|
|
||||||
Baloo::Query query;
|
Baloo::Query query;
|
||||||
query.addType("File");
|
|
||||||
query.addType(m_facetsWidget->facetType());
|
query.addType(m_facetsWidget->facetType());
|
||||||
|
|
||||||
Baloo::Term term(Baloo::Term::And);
|
Baloo::Term term(Baloo::Term::And);
|
||||||
|
@ -488,7 +487,6 @@ void DolphinSearchBox::fromBalooSearchUrl(const QUrl& url)
|
||||||
setText(query.searchString());
|
setText(query.searchString());
|
||||||
|
|
||||||
QStringList types = query.types();
|
QStringList types = query.types();
|
||||||
types.removeOne("File"); // We are only interested in facet widget types
|
|
||||||
if (!types.isEmpty()) {
|
if (!types.isEmpty()) {
|
||||||
m_facetsWidget->setFacetType(types.first());
|
m_facetsWidget->setFacetType(types.first());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue