┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2011-01-18 18:27:49 +0000
committerPeter Penz <[email protected]>2011-01-18 18:27:49 +0000
commit4dd1ed179df79fa71be4a11f63bb81abb44cbae8 (patch)
tree5b78812f74b4e6635c52ea5a0536cde0f925bbef
parent519c2d435fe17bbaea4e0219ab570473bd567b11 (diff)
Fix issue that the "From Here" search restriction does not work on subfolders when Nepomuk/Strigi has been activated.
CCBUG: 262274 svn path=/trunk/KDE/kdebase/apps/; revision=1215428
-rw-r--r--src/search/dolphinsearchbox.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/search/dolphinsearchbox.cpp b/src/search/dolphinsearchbox.cpp
index bcee7e9af..f270c41ff 100644
--- a/src/search/dolphinsearchbox.cpp
+++ b/src/search/dolphinsearchbox.cpp
@@ -377,8 +377,10 @@ KUrl DolphinSearchBox::nepomukUrlForSearching() const
Nepomuk::Query::FileQuery fileQuery;
fileQuery.setFileMode(Nepomuk::Query::FileQuery::QueryFiles);
fileQuery.setTerm(andTerm);
- if(m_fromHereButton->isChecked())
- fileQuery.addIncludeFolder(m_searchPath, false);
+ if (m_fromHereButton->isChecked()) {
+ const bool recursive = true;
+ fileQuery.addIncludeFolder(m_searchPath, recursive);
+ }
return fileQuery.toSearchUrl(i18nc("@title UDS_DISPLAY_NAME for a KIO directory listing. %1 is the query the user entered.",
"Query Results from '%1'",