diff options
| author | Alexander Lohnau <[email protected]> | 2021-11-11 19:31:33 +0100 |
|---|---|---|
| committer | Alexander Lohnau <[email protected]> | 2021-12-01 22:10:58 +0000 |
| commit | 906622ee2aa2f1dc4ddce410fe6eada983b09b39 (patch) | |
| tree | 40118ea64900150cf2c81728238be87a4d8a9b82 /src | |
| parent | a8ac157bdcf2438c16c0782028c2e7a310b0a833 (diff) | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/dolphincontextmenu.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dolphincontextmenu.cpp b/src/dolphincontextmenu.cpp index 41f03aa1a..65545c52c 100644 --- a/src/dolphincontextmenu.cpp +++ b/src/dolphincontextmenu.cpp @@ -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() |
