]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/search/dolphinsearchbox.cpp
Dolphin Facet Widgets: Implement date based filtering
[dolphin.git] / src / search / dolphinsearchbox.cpp
index c178c43c7c673971fb40c0b86be6fdde8fe6bd04..e6b738a9314e91ffea14ea702721d0c30c156077 100644 (file)
@@ -448,13 +448,15 @@ KUrl DolphinSearchBox::balooUrlForSearching() const
     if (m_contentButton->isChecked()) {
         query.setSearchString(text);
     } else {
-        term.addSubTerm(Baloo::Term("filename", text));
+        term.addSubTerm(Baloo::Term(QLatin1String("filename"), text));
     }
 
     if (m_fromHereButton->isChecked()) {
         query.addCustomOption("includeFolder", m_searchPath.toLocalFile());
     }
 
+    query.setTerm(term);
+
     return query.toSearchUrl(i18nc("@title UDS_DISPLAY_NAME for a KIO directory listing. %1 is the query the user entered.",
                                    "Query Results from '%1'", text));
 #else