Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Plasma
Plasma Workspace
Commits
742f4c86
Unverified
Commit
742f4c86
authored
Sep 20, 2020
by
Yoann Laissus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use CanStop instead of CanControl for the media stop shortcut
CanStop has additional checks about the playback status
parent
c5f793f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
dataengines/mpris2/multiplexedservice.cpp
dataengines/mpris2/multiplexedservice.cpp
+1
-1
No files found.
dataengines/mpris2/multiplexedservice.cpp
View file @
742f4c86
...
...
@@ -130,7 +130,7 @@ void MultiplexedService::enableGlobalShortcuts()
KGlobalAccel
::
setGlobalShortcut
(
stopAction
,
Qt
::
Key_MediaStop
);
connect
(
stopAction
,
&
QAction
::
triggered
,
this
,
[
this
]
{
if
(
m_control
&&
m_control
->
capabilities
()
&
PlayerContainer
::
Can
Control
)
{
if
(
m_control
&&
m_control
->
capabilities
()
&
PlayerContainer
::
Can
Stop
)
{
m_control
->
playerInterface
()
->
Stop
();
}
}
...
...
Write
Preview
Markdown
is supported
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