Commit 26c790b3 authored by Méven Car's avatar Méven Car
Browse files

Tagging fileitemplugin: use parent Widget as menu parent

It is to allow the parent to add EventFilter to its children.

CCBUG: 425997
parent adeef779
......@@ -99,7 +99,6 @@ TagsFileItemAction::~TagsFileItemAction()
QList<QAction*> TagsFileItemAction::actions(const KFileItemListProperties& fileItemInfos, QWidget* parentWidget)
{
Q_UNUSED(parentWidget);
if (fileItemInfos.urlList().size() > 1) {
return {};
......@@ -117,6 +116,8 @@ QList<QAction*> TagsFileItemAction::actions(const KFileItemListProperties& fileI
m_tagsLister.openUrl(QUrl(QStringLiteral("tags:/")), KCoreDirLister::OpenUrlFlag::Reload);
m_menu->setParent(parentWidget);
return {m_menu->menuAction()};
}
......
Markdown is supported
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