From 151a17e0480038f322db2c33d45b61cd881f62ee Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Mon, 23 Dec 2019 11:44:58 +0100 Subject: [PATCH] [DolphinContextMenu] Use contains check for scheme again Regression introduced in 8b0c12a59ccb23fdb6393f640693d21afaeb02a1 There's "filenamesearch" and "baloosearch". Differential Revision: https://phabricator.kde.org/D26169 --- src/dolphincontextmenu.cpp | 4 ++-- 1 file 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; } -- 2.47.3