]> cloud.milkyroute.net Git - dolphin.git/commitdiff
SearchBox: Baloo now only searches through Files
authorVishesh Handa <me@vhanda.in>
Wed, 29 Apr 2015 12:41:25 +0000 (14:41 +0200)
committerVishesh Handa <me@vhanda.in>
Wed, 29 Apr 2015 14:06:10 +0000 (16:06 +0200)
We no longer need to explicitly state files

src/search/dolphinsearchbox.cpp

index 524c4462f5440bf5ccc9f3731ad8d0aa2cc2d4ce..b67d1e65fb6240d1a55ba2d67a425a7ecf7dfc66 100644 (file)
@@ -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());
     }