]> cloud.milkyroute.net Git - dolphin.git/commitdiff
[DolphinContextMenu] Use contains check for scheme again
authorKai Uwe Broulik <kde@privat.broulik.de>
Mon, 23 Dec 2019 10:44:58 +0000 (11:44 +0100)
committerKai Uwe Broulik <kde@privat.broulik.de>
Mon, 23 Dec 2019 10:44:58 +0000 (11:44 +0100)
Regression introduced in 8b0c12a59ccb23fdb6393f640693d21afaeb02a1
There's "filenamesearch" and "baloosearch".

Differential Revision: https://phabricator.kde.org/D26169

src/dolphincontextmenu.cpp

index 58a623a6e9030e11ddfa2ae8da3140e5eed81d3b..ca0f5e32f5e5cdbc462e022639b8fda2d2445dbf 100644 (file)
@@ -97,9 +97,9 @@ DolphinContextMenu::Command DolphinContextMenu::open()
     const auto scheme = m_baseUrl.scheme();
     if (scheme == QLatin1String("trash")) {
         m_context |= TrashContext;
     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;
         m_context |= SearchContext;
-    } else if (scheme == QLatin1String("timeline")) {
+    } else if (scheme.contains(QLatin1String("timeline"))) {
         m_context |= TimelineContext;
     }
 
         m_context |= TimelineContext;
     }