Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KWin
Commits
41766d35
Commit
41766d35
authored
Mar 05, 2021
by
Kevin Ottens
Committed by
Kevin Ottens
Mar 09, 2021
Browse files
Activities now accept AbstractClient, no need to downcast
Which means now it doesn't need to be limited to X11Clients only.
parent
228a6e44
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/useractions.cpp
View file @
41766d35
...
...
@@ -789,12 +789,7 @@ void UserActionsMenu::slotToggleOnActivity(QAction *action)
return
;
}
X11Client
*
c
=
dynamic_cast
<
X11Client
*>
(
m_client
.
data
());
if
(
!
c
)
{
return
;
}
Activities
::
self
()
->
toggleClientOnActivity
(
c
,
activity
,
false
);
Activities
::
self
()
->
toggleClientOnActivity
(
m_client
,
activity
,
false
);
if
(
m_activityMenu
&&
m_activityMenu
->
isVisible
()
&&
m_activityMenu
->
actions
().
count
())
{
const
bool
isOnAll
=
m_client
->
isOnAllActivities
();
m_activityMenu
->
actions
().
at
(
0
)
->
setChecked
(
isOnAll
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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