Commit 906622ee authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

Port away from deprecated KFileItemActions::addOpenWithActionsTo method

Instead of the KServiceTypeTrader constraint, pass the desktop file name
as part of the exclude list to the method call.
parent a8ac157b
......@@ -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()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment