]> cloud.milkyroute.net Git - dolphin.git/commit
When you open a new tab while the search mode is enabled, the
authorEmmanuel Pescosta <emmanuelpescosta099@gmail.com>
Fri, 28 Mar 2014 17:48:48 +0000 (18:48 +0100)
committerEmmanuel Pescosta <emmanuelpescosta099@gmail.com>
Fri, 28 Mar 2014 17:48:48 +0000 (18:48 +0100)
commit5d63b9a111e6ae76ff7b9f5ba9cd26be873aa115
tree2ea10c0569e29c258330d6fe19fbe24dd5d88b7f
parent5c2f52e62a7cfef961c2f67585c84c04b4193370
When you open a new tab while the search mode is enabled, the
newly opened tab also starts the same search (Because new tab is opened with
the current view url), but the search box is in read-only mode. So you cannot
close the search bar nor edit the search text.

This patch fixes this by parsing the search url. The value of the "search"
parameter is used as search text and the value of the "url" parameter is used
for the search path ("root" folder for the search when "Search from here" mode
is enabled).

In case of Baloo search urls, we use Baloo::Query::fromSearchUrl.

Removed everything related to read only mode in DolphinSearchBox, not needed
anymore.

REVIEW: 111968
BUG: 311950
FIXED-IN: 4.13.0
src/dolphinviewcontainer.cpp
src/search/dolphinfacetswidget.cpp
src/search/dolphinfacetswidget.h
src/search/dolphinsearchbox.cpp
src/search/dolphinsearchbox.h