]> cloud.milkyroute.net Git - dolphin.git/commit
fix(search): Allow to set empty type
authorIsmael Asensio <isma.af@gmail.com>
Wed, 13 Nov 2019 21:48:45 +0000 (22:48 +0100)
committerIsmael Asensio <isma.af@gmail.com>
Wed, 13 Nov 2019 21:53:18 +0000 (22:53 +0100)
commitadfc098aa74723ec3f01cda513290864ef9ee0f9
tree7c08a7d4f22679355b4331210afed11d161136ce
parentfc5546d03b08e89060ee6abf9d58c273ae1e705b
fix(search): Allow to set empty type

Summary:
This small patch allows to set and empty `type` to the extended options, which will set the `Any Type` option (index 0).
It doesn't make any change in current code, since this case is not called, but it helps simplifying follow-up patches.

Test Plan:
No behavior changes with current code.
Calling `setFacetsType(QString())` actually sets the first option (`Any Type`)

Reviewers: elvisangelaccio, #dolphin

Reviewed By: elvisangelaccio, #dolphin

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D25255
src/search/dolphinfacetswidget.cpp