Commit dd0e1a1c authored by Nate Graham's avatar Nate Graham
Browse files

Fix in-app seek shortcuts

They were reversed!

BUG: 441485
FIXED-IN: 21.08.1
parent 618cf9b5
Pipeline #76679 passed with stage
in 17 seconds
......@@ -191,13 +191,13 @@ void ElisaApplication::setupActions(const QString &actionName)
if (actionName == QLatin1String("NextTrack") && KAuthorized::authorizeAction(actionName)) {
auto nextTrackAction = d->mCollection.addAction(actionName, this, &ElisaApplication::nextTrack);
nextTrackAction->setText(i18n("Go to next track"));
d->mCollection.setDefaultShortcut(nextTrackAction, QKeySequence(Qt::CTRL + Qt::Key_Left));
d->mCollection.setDefaultShortcut(nextTrackAction, QKeySequence(Qt::CTRL + Qt::Key_Right));
}
if (actionName == QLatin1String("PreviousTrack") && KAuthorized::authorizeAction(actionName)) {
auto previousTrackAction = d->mCollection.addAction(actionName, this, &ElisaApplication::previousTrack);
previousTrackAction->setText(i18n("Go to previous track"));
d->mCollection.setDefaultShortcut(previousTrackAction, QKeySequence(Qt::CTRL + Qt::Key_Right));
d->mCollection.setDefaultShortcut(previousTrackAction, QKeySequence(Qt::CTRL + Qt::Key_Left));
}
if (actionName == QLatin1String("Play-Pause") && KAuthorized::authorizeAction(actionName)) {
......
......@@ -88,12 +88,12 @@ Kirigami.ApplicationWindow {
Action {
shortcut: nextTrackAction.shortcut
onTriggered: ElisaApplication.mediaPlayListProxyModel.skipPreviousTrack(ElisaApplication.audioPlayer.position)
onTriggered: ElisaApplication.mediaPlayListProxyModel.skipNextTrack(ElisaApplication.audioPlayer.position)
}
Action {
shortcut: previousTrackAction.shortcut
onTriggered: ElisaApplication.mediaPlayListProxyModel.skipNextTrack(ElisaApplication.audioPlayer.position)
onTriggered: ElisaApplication.mediaPlayListProxyModel.skipPreviousTrack(ElisaApplication.audioPlayer.position)
}
Action {
......
Markdown is supported
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