From da32e987a5e0a55889e87ec4dae4075278b93b79 Mon Sep 17 00:00:00 2001 From: Sebastian Trueg Date: Tue, 23 Nov 2010 08:06:22 +0000 Subject: [PATCH] Honor the from here/everywhere setting svn path=/trunk/KDE/kdebase/apps/; revision=1199915 --- src/search/dolphinsearchbox.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/search/dolphinsearchbox.cpp b/src/search/dolphinsearchbox.cpp index 32f66adb4..23d0c658a 100644 --- a/src/search/dolphinsearchbox.cpp +++ b/src/search/dolphinsearchbox.cpp @@ -349,6 +349,8 @@ 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); return fileQuery.toSearchUrl(i18nc("@title UDS_DISPLAY_NAME for a KIO directory listing. %1 is the query the user entered.", "Query Results from '%1'", -- 2.47.3