Commit dc5d2cee authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

Fix focus toolview actions

Now they are properly added to actionCollection

(cherry picked from commit 85a3ead9)
parent 8f357766
Pipeline #274460 skipped
......@@ -191,7 +191,10 @@ void GUIClient::registerToolView(ToolView *tv)
aname = QStringLiteral("kate_mdi_focus_toolview_") + tv->id;
QAction *act = new QAction(i18n("Focus %1", tv->text), this);
actionCollection()->setDefaultShortcuts(act, shortcutsForActionName(aname));
actionCollection()->addAction(aname, act);
connect(act, &QAction::triggered, tv, [tv = QPointer(tv)] {
if (tv && tv->mainWindow()) {
if (!tv->isVisible()) {
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