Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
dc5d2cee
Commit
dc5d2cee
authored
Nov 25, 2022
by
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
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
apps/lib/katemdi.cpp
View file @
dc5d2cee
...
...
@@ -191,7 +191,10 @@ void GUIClient::registerToolView(ToolView *tv)
m_sidebarButtonsMenu
->
addAction
(
a
);
actionsForTool
.
push_back
(
a
);
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
())
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment