]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Port away from deprecated KFileItemActions::addOpenWithActionsTo method
authorAlexander Lohnau <alexander.lohnau@gmx.de>
Thu, 11 Nov 2021 18:31:33 +0000 (19:31 +0100)
committerAlexander Lohnau <alexander.lohnau@gmx.de>
Wed, 1 Dec 2021 22:10:58 +0000 (22:10 +0000)
Instead of the KServiceTypeTrader constraint, pass the desktop file name
as part of the exclude list to the method call.

src/dolphincontextmenu.cpp

index 41f03aa1ad541efd4ceb2786ef32e0f32d53d663..65545c52cf9702a4752e5bdfbde96c9d3a51bb38 100644 (file)
@@ -477,7 +477,7 @@ KFileItem DolphinContextMenu::baseFileItem()
 void DolphinContextMenu::addOpenWithActions()
 {
     // insert 'Open With...' action or sub menu
-    m_fileItemActions->addOpenWithActionsTo(this, QStringLiteral("DesktopEntryName != '%1'").arg(qApp->desktopFileName()));
+    m_fileItemActions->insertOpenWithActionsTo(nullptr, this, QStringList{qApp->desktopFileName()});
 }
 
 void DolphinContextMenu::addCustomActions()