]> cloud.milkyroute.net Git - dolphin.git/commitdiff
[dolphin/search] Add missing parsing for type 'Folder'
authorIsmael Asensio <isma.af@mgmail.com>
Mon, 7 Oct 2019 19:44:34 +0000 (21:44 +0200)
committerElvis Angelaccio <elvis.angelaccio@kde.org>
Mon, 7 Oct 2019 19:44:34 +0000 (21:44 +0200)
Summary:
Add missing parsing for type 'Folder'
See D24422

Test Plan:
dolphin --new-window 'baloosearch:?json=%7B%22type%22:[%22Folder%22]%7D'
- `Folders` is selected in search options

Reviewers: #dolphin, elvisangelaccio, meven, ngraham

Reviewed By: #dolphin, ngraham

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D24448

src/search/dolphinfacetswidget.cpp

index e4388f2e7a9ea20044be0582a3af81d89f24b3cd..35f0c67c1d457876278a446e0abd2a063d3308e7 100644 (file)
@@ -211,7 +211,9 @@ void DolphinFacetsWidget::setRatingTerm(const QString& term)
 
 void DolphinFacetsWidget::setFacetType(const QString& type)
 {
-    if (type == QLatin1String("Document")) {
+    if (type == QLatin1String("Folder")) {
+        m_folders->setChecked(true);
+    } else if (type == QLatin1String("Document")) {
         m_documents->setChecked(true);
     } else if (type == QLatin1String("Image")) {
         m_images->setChecked(true);