diff options
| author | Ismael Asensio <[email protected]> | 2019-10-20 11:43:32 +0200 |
|---|---|---|
| committer | Elvis Angelaccio <[email protected]> | 2019-10-20 11:43:32 +0200 |
| commit | 167d5184eda19f8ce549d6a645c800ab39bce936 (patch) | |
| tree | 63f0bdcc7a432fb84a6a307159ab7b3ed726d9d4 /src/search/dolphinsearchbox.h | |
| parent | 0caab3c0a23c6b96ef3cba2cf94c61a4c10e7b43 (diff) | |
[dolphin/search] Fix search behavior when selecting "Your Files"
Summary:
Fix the search box forgetting the location where the user was previously searching into.
To do a search on "All Files" instead of setting the `m_searchPath` to `$HOME`, it checks the button state, so the "From Here" location is not lost.
As an added benefit, selecting "Your Files" when in a non-indexed folder will use the baloo search instead of a fully non-indexed search from $HOME.
This issue is the last remaining one of the series started with D24422, with the purpose of fixing the searchbox parsing and update.
Test Plan:
- Toggle between "From Here/Your Files" and navigate between locations
- The search box remembers the location and keeps a coherent state
{F7575402}
Reviewers: #dolphin, elvisangelaccio
Subscribers: kfm-devel
Tags: #dolphin
Differential Revision: https://phabricator.kde.org/D24577
Diffstat (limited to 'src/search/dolphinsearchbox.h')
| -rw-r--r-- | src/search/dolphinsearchbox.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/search/dolphinsearchbox.h b/src/search/dolphinsearchbox.h index e70317450..35b422631 100644 --- a/src/search/dolphinsearchbox.h +++ b/src/search/dolphinsearchbox.h @@ -62,8 +62,8 @@ public: QString text() const; /** - * Sets the current path that is used as root for - * searching files, if "From Here" has been selected. + * Sets the current path that is used as root for searching files. + * If @url is the Home dir, "From Here" is selected instead. */ void setSearchPath(const QUrl& url); QUrl searchPath() const; |
