summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rosca <nowrep@gmail.com>2017-01-12 13:57:45 (GMT)
committerDavid Rosca <nowrep@gmail.com>2017-01-24 12:11:14 (GMT)
commit2b87302d9d016392edc6a4842f94411612ac34b0 (patch)
tree05afa2609c128cb9f00241c8df6d8e30907e4b65
parent27c8c9aa84b42640bbc65ea64f15cbdf4b6705e3 (diff)
Fix compare for undefined argument in playFeedback()
Calling playFeedback(0) would incorrectly play feedback on preferred sink. Differential Revision: https://phabricator.kde.org/D4104
-rw-r--r--applet/contents/ui/main.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/applet/contents/ui/main.qml b/applet/contents/ui/main.qml
index a2ae3a5..b4fbb33 100644
--- a/applet/contents/ui/main.qml
+++ b/applet/contents/ui/main.qml
@@ -152,7 +152,7 @@ Item {
if (!volumeFeedback) {
return;
}
- if (!sinkIndex) {
+ if (sinkIndex == undefined) {
sinkIndex = sinkModel.preferredSink.index;
}
feedback.play(sinkIndex);