Instead of the KServiceTypeTrader constraint, pass the desktop file name
as part of the exclude list to the method call.
void DolphinContextMenu::addOpenWithActions()
{
// insert 'Open With...' action or sub menu
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()
}
void DolphinContextMenu::addCustomActions()