diff options
author | Ted Gould <ted@gould.cx> | 2014-10-14 09:45:40 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2014-10-14 09:45:40 -0500 |
commit | 52e2c2d3dce6ded517f9666d5d0412d56054d9d9 (patch) | |
tree | 8a895e0ca1fceae079dc901e212e850413835990 /src | |
parent | a2de8d1b337113ced7854683aad0183a841917f1 (diff) | |
download | ayatana-indicator-sound-52e2c2d3dce6ded517f9666d5d0412d56054d9d9.tar.gz ayatana-indicator-sound-52e2c2d3dce6ded517f9666d5d0412d56054d9d9.tar.bz2 ayatana-indicator-sound-52e2c2d3dce6ded517f9666d5d0412d56054d9d9.zip |
Ensure that we're always getting a vlue in the list
Diffstat (limited to 'src')
-rw-r--r-- | src/volume-control.vala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/volume-control.vala b/src/volume-control.vala index b65cbc8..cf2dacf 100644 --- a/src/volume-control.vala +++ b/src/volume-control.vala @@ -624,7 +624,7 @@ public class VolumeControl : Object /* Choose a sound */ string? sound = null; - if (_active_sink_input == -1 || _valid_roles[_active_sink_input] != "multimedia") + if (!((_active_sink_input in _sink_input_list) && (_valid_roles[_active_sink_input] == "multimedia"))) sound = "/usr/share/sounds/ubuntu/stereo/message.ogg"; /* Check tint */ |