diff options
| author | Ismael Asensio <[email protected]> | 2019-10-07 21:44:34 +0200 |
|---|---|---|
| committer | Elvis Angelaccio <[email protected]> | 2019-10-07 21:44:34 +0200 |
| commit | 304ab14e0883b0c601dc3c7f7c26387245db66e0 (patch) | |
| tree | 724e659852a869cacae959feee8d7e09807e3d30 /src/search/dolphinfacetswidget.cpp | |
| parent | fcf2d98447a1103af2dae5b1da0e673a6a42122e (diff) | |
[dolphin/search] Add missing parsing for type 'Folder'
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
Diffstat (limited to 'src/search/dolphinfacetswidget.cpp')
| -rw-r--r-- | src/search/dolphinfacetswidget.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/search/dolphinfacetswidget.cpp b/src/search/dolphinfacetswidget.cpp index e4388f2e7..35f0c67c1 100644 --- a/src/search/dolphinfacetswidget.cpp +++ b/src/search/dolphinfacetswidget.cpp @@ -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); |
