Unverified Commit 742f4c86 authored by Yoann Laissus's avatar Yoann Laissus
Browse files

Use CanStop instead of CanControl for the media stop shortcut

CanStop has additional checks about the playback status
parent c5f793f8
......@@ -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::CanControl) {
if (m_control && m_control->capabilities() & PlayerContainer::CanStop) {
m_control->playerInterface()->Stop();
}
}
......
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