Commit b6cdf096 authored by Christoph Cullmann's avatar Christoph Cullmann 🐮
Browse files

filter out menus, we can't trigger them in the dialog

parent ddef496c
...@@ -174,6 +174,10 @@ void KateCommandBar::updateBar(QList<KActionCollection *> actionCollections) ...@@ -174,6 +174,10 @@ void KateCommandBar::updateBar(QList<KActionCollection *> actionCollections)
QVector<QPair<QString, QAction*>> actionList; QVector<QPair<QString, QAction*>> actionList;
for (const auto collection : actionCollections) { for (const auto collection : actionCollections) {
for (const auto action : collection->actions()) { for (const auto action : collection->actions()) {
// filter out stuff one can not really trigger
if (action->menu())
continue;
actionList.append({collection->componentDisplayName(), action}); actionList.append({collection->componentDisplayName(), action});
} }
} }
......
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