]> cloud.milkyroute.net Git - dolphin.git/commit
fix(search): Fix baloo searchString parsing
authorIsmael Asensio <isma.af@gmail.com>
Fri, 15 Nov 2019 22:34:13 +0000 (23:34 +0100)
committerIsmael Asensio <isma.af@gmail.com>
Thu, 28 Nov 2019 21:08:13 +0000 (22:08 +0100)
commit6776fbc94760188daeca0ab30e49f645f225f008
treeca16e7330b722f6235fadcb38a164a78f6dea22c
parent089a05b4edfd7a70e50ed7d8b158cbcc50538d36
fix(search): Fix baloo searchString parsing

Summary:
Fix the parsing of Baloo query `searchString` to represent its parameters properly
in the search box:
# Baloo terms (`rating`, `modified`) are added to the user search text: {F7575590}
# Extra quotes are added to the search text: https://bugs.kde.org/show_bug.cgi?id=412952

This revision supersedes D24422, by making the fixes on the new dolphin query model,
instead of directly on the UI.

BUG: 412952
FIXED IN: 19.11.90

Test Plan:
  - `bin/dolphinquerytest` passes without `XFAIL`s
  - Dolphin search box is not garbled by search terms or quotes

Reviewers: elvisangelaccio, bruns, ngraham, #dolphin

Reviewed By: elvisangelaccio

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D25260
src/search/dolphinquery.cpp
src/tests/dolphinquerytest.cpp