Commit 8d898d2a authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

Port KFileItemActions::preferredOpenWithAction

This method uses the traderConstraint which is about to be deprecated.

Instead use insertOpenWithActionsTo which adds a submenu with the
associated apps.
parent 45dd09bf
......@@ -1791,7 +1791,7 @@ void FolderModel::openContextMenu(QQuickItem *visualParent, Qt::KeyboardModifier
KFileItemListProperties itemProperties(KFileItemList() << rootItem());
m_fileItemActions->setItemListProperties(itemProperties);
menu->addAction(m_fileItemActions->preferredOpenWithAction(QString()));
m_fileItemActions->insertOpenWithActionsTo(nullptr, menu, QStringList());
} else {
KFileItemList items;
QList<QUrl> urls;
......
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