summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rosca <nowrep@gmail.com>2017-01-12 14:29:17 (GMT)
committerDavid Rosca <nowrep@gmail.com>2017-01-12 14:51:49 (GMT)
commit27c8c9aa84b42640bbc65ea64f15cbdf4b6705e3 (patch)
treec5675787004a195ae86ea61cfa4b02dbbfc25928
parentf21aa35e9946722142026131e18b87bc1b8b1ff6 (diff)
Pass correct index to playFeedback
It expects index of the sink, not card index. BUG: 374919 FIXED-IN: 5.8.6 Differential Revision: https://phabricator.kde.org/D4105
-rw-r--r--applet/contents/ui/ListItemBase.qml2
-rw-r--r--applet/contents/ui/main.qml2
2 files changed, 2 insertions, 2 deletions
diff --git a/applet/contents/ui/ListItemBase.qml b/applet/contents/ui/ListItemBase.qml
index afc7e02..db517c6 100644
--- a/applet/contents/ui/ListItemBase.qml
+++ b/applet/contents/ui/ListItemBase.qml
@@ -161,7 +161,7 @@ PlasmaComponents.ListItem {
Muted = false;
if (type == "sink") {
- playFeedback(CardIndex);
+ playFeedback(Index);
}
if (!pressed) {
diff --git a/applet/contents/ui/main.qml b/applet/contents/ui/main.qml
index a8cd62a..a2ae3a5 100644
--- a/applet/contents/ui/main.qml
+++ b/applet/contents/ui/main.qml
@@ -153,7 +153,7 @@ Item {
return;
}
if (!sinkIndex) {
- sinkIndex = sinkModel.preferredSink.cardIndex;
+ sinkIndex = sinkModel.preferredSink.index;
}
feedback.play(sinkIndex);
}