┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Uwe Broulik <[email protected]>2019-12-23 11:44:58 +0100
committerKai Uwe Broulik <[email protected]>2019-12-23 11:44:58 +0100
commit151a17e0480038f322db2c33d45b61cd881f62ee (patch)
tree148a20c37ab985aadc9eba75e89c1bf849484649
parent6cb4d81a02e1d11d8946e9d723cb6814e62c27c9 (diff)
[DolphinContextMenu] Use contains check for scheme again
Regression introduced in 8b0c12a59ccb23fdb6393f640693d21afaeb02a1 There's "filenamesearch" and "baloosearch". Differential Revision: https://phabricator.kde.org/D26169
-rw-r--r--src/dolphincontextmenu.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dolphincontextmenu.cpp b/src/dolphincontextmenu.cpp
index 58a623a6e..ca0f5e32f 100644
--- a/src/dolphincontextmenu.cpp
+++ b/src/dolphincontextmenu.cpp
@@ -97,9 +97,9 @@ DolphinContextMenu::Command DolphinContextMenu::open()
const auto scheme = m_baseUrl.scheme();
if (scheme == QLatin1String("trash")) {
m_context |= TrashContext;
- } else if (scheme == QLatin1String("search")) {
+ } else if (scheme.contains(QLatin1String("search"))) {
m_context |= SearchContext;
- } else if (scheme == QLatin1String("timeline")) {
+ } else if (scheme.contains(QLatin1String("timeline"))) {
m_context |= TimelineContext;
}