Commit 151a17e0 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

[DolphinContextMenu] Use contains check for scheme again

Regression introduced in 8b0c12a5
There's "filenamesearch" and "baloosearch".

Differential Revision: https://phabricator.kde.org/D26169
parent 6cb4d81a
...@@ -97,9 +97,9 @@ DolphinContextMenu::Command DolphinContextMenu::open() ...@@ -97,9 +97,9 @@ DolphinContextMenu::Command DolphinContextMenu::open()
const auto scheme = m_baseUrl.scheme(); const auto scheme = m_baseUrl.scheme();
if (scheme == QLatin1String("trash")) { if (scheme == QLatin1String("trash")) {
m_context |= TrashContext; m_context |= TrashContext;
} else if (scheme == QLatin1String("search")) { } else if (scheme.contains(QLatin1String("search"))) {
m_context |= SearchContext; m_context |= SearchContext;
} else if (scheme == QLatin1String("timeline")) { } else if (scheme.contains(QLatin1String("timeline"))) {
m_context |= TimelineContext; m_context |= TimelineContext;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment