From: Vishesh Handa Date: Wed, 29 Apr 2015 12:41:25 +0000 (+0200) Subject: SearchBox: Baloo now only searches through Files X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/945658459702f008c56bf28d21bc7d3666c7e9db SearchBox: Baloo now only searches through Files We no longer need to explicitly state files --- diff --git a/src/search/dolphinsearchbox.cpp b/src/search/dolphinsearchbox.cpp index 524c4462f..b67d1e65f 100644 --- a/src/search/dolphinsearchbox.cpp +++ b/src/search/dolphinsearchbox.cpp @@ -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()); }