diff options
| author | Ismael Asensio <[email protected]> | 2020-06-22 12:33:29 +0000 |
|---|---|---|
| committer | Ismael Asensio <[email protected]> | 2020-06-22 12:33:29 +0000 |
| commit | f57ee4b64d924fca85c6ce0be659cd6235f959a9 (patch) | |
| tree | ab1c4e3141c473811311b995fd93b8e50284ddbd /src/search/dolphinsearchbox.cpp | |
| parent | aea6128fe66171a411172089dcba85c90b89953f (diff) | |
Expand DolphinQuery to support different Url schemes
Diffstat (limited to 'src/search/dolphinsearchbox.cpp')
| -rw-r--r-- | src/search/dolphinsearchbox.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/search/dolphinsearchbox.cpp b/src/search/dolphinsearchbox.cpp index f0d8c5416..239280280 100644 --- a/src/search/dolphinsearchbox.cpp +++ b/src/search/dolphinsearchbox.cpp @@ -146,8 +146,8 @@ QUrl DolphinSearchBox::urlForSearching() const void DolphinSearchBox::fromSearchUrl(const QUrl& url) { - if (url.scheme() == QLatin1String("baloosearch")) { - const DolphinQuery query = DolphinQuery::fromBalooSearchUrl(url); + if (DolphinQuery::supportsScheme(url.scheme())) { + const DolphinQuery query = DolphinQuery::fromSearchUrl(url); updateFromQuery(query); } else if (url.scheme() == QLatin1String("filenamesearch")) { const QUrlQuery query(url); |
