From: Peter Penz Date: Tue, 18 Jan 2011 18:27:49 +0000 (+0000) Subject: Fix issue that the "From Here" search restriction does not work on subfolders when... X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/4dd1ed179df79fa71be4a11f63bb81abb44cbae8?ds=inline 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 --- 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'",