diff --git a/src/panels/filter/filterpanel.cpp b/src/panels/filter/filterpanel.cpp index 5cfaa144d1..021a2d3b8e 100644 --- a/src/panels/filter/filterpanel.cpp +++ b/src/panels/filter/filterpanel.cpp @@ -34,6 +34,7 @@ #include #include #include +#include #include #include @@ -108,7 +109,9 @@ void FilterPanel::showEvent(QShowEvent* event) // Artists Nepomuk::Utils::ProxyFacet* artistProxy = new Nepomuk::Utils::ProxyFacet(); - artistProxy->setFacetCondition(Nepomuk::Query::ResourceTypeTerm(Nepomuk::Vocabulary::NFO::Audio())); + artistProxy->setFacetCondition(Nepomuk::Query::ResourceTypeTerm(Nepomuk::Vocabulary::NFO::Audio()) || + Nepomuk::Query::ComparisonTerm(Nepomuk::Vocabulary::NIE::mimeType(), + Nepomuk::Query::LiteralTerm(QLatin1String("audio")))); Nepomuk::Utils::DynamicResourceFacet* artistFacet = new Nepomuk::Utils::DynamicResourceFacet(artistProxy); artistFacet->setSelectionMode(Nepomuk::Utils::Facet::MatchAny); artistFacet->setRelation(Nepomuk::Vocabulary::NMM::performer()); @@ -162,7 +165,7 @@ void FilterPanel::slotSetUrlStatFinished(KJob* job) void FilterPanel::slotQueryTermChanged(const Nepomuk::Query::Term& term) { - Nepomuk::Query::Query query(m_unfacetedRestQuery && term); + Nepomuk::Query::FileQuery query(m_unfacetedRestQuery && term); emit urlActivated(query.toSearchUrl()); }