]> cloud.milkyroute.net Git - dolphin.git/commit
[dolphin/search] Reset search options when needed
authorIsmael Asensio <isma.af@mgmail.com>
Sun, 20 Oct 2019 09:51:59 +0000 (11:51 +0200)
committerElvis Angelaccio <elvis.angelaccio@kde.org>
Sun, 20 Oct 2019 09:51:59 +0000 (11:51 +0200)
commitc540b4eef12d8251e25c608cd2c04fca724afa6f
tree7268b0e3bff51878118f4d1e17ecbe81828b59a1
parent167d5184eda19f8ce549d6a645c800ab39bce936
[dolphin/search] Reset search options when needed

Summary:
Adds a method to reset the options in `facetsWidget` in two cases: when disabled and before parsing a new search URL.
Otherwise, controls for a parameter (ex. `rating`) which are not found in the new URL would stay on the old positions, instead of the default "any".
See D24422

Test Plan: Controls on `facetsWidget` go back to the default in such two cases.

Reviewers: #dolphin, elvisangelaccio, meven, ngraham

Reviewed By: ngraham

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D24450
src/search/dolphinfacetswidget.cpp
src/search/dolphinfacetswidget.h
src/search/dolphinsearchbox.cpp