Verified Commit b8e7acf8 authored by ivan tkachenko's avatar ivan tkachenko
Browse files

applets/kickoff: Prevent empty menu from opening

BUG: 455927
FIXED-IN: 5.24
parent 764b072f
......@@ -69,12 +69,14 @@ T.ItemDelegate {
}
root.actionList = allActions
}
ActionMenu.plasmoid = plasmoid
ActionMenu.menu.visualParent = root
if (x !== undefined && y !== undefined) {
ActionMenu.menu.open(x, y)
} else {
ActionMenu.menu.openRelative()
if (actionList && actionList.length > 0) {
ActionMenu.plasmoid = plasmoid
ActionMenu.menu.visualParent = root
if (x !== undefined && y !== undefined) {
ActionMenu.menu.open(x, y)
} else {
ActionMenu.menu.openRelative()
}
}
}
......
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