diff options
author | Ted Gould <ted@gould.cx> | 2014-10-15 13:52:31 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2014-10-15 13:52:31 -0500 |
commit | 1e193a4b99e62b52fb759d00a8745f1c477d965f (patch) | |
tree | 20a01d145f2e8e648f93670c99cc5bd699665a3b /src/sound-menu.vala | |
parent | 5dd9bda0ea449024dbc97e26f92631401048bc57 (diff) | |
download | ayatana-indicator-sound-1e193a4b99e62b52fb759d00a8745f1c477d965f.tar.gz ayatana-indicator-sound-1e193a4b99e62b52fb759d00a8745f1c477d965f.tar.bz2 ayatana-indicator-sound-1e193a4b99e62b52fb759d00a8745f1c477d965f.zip |
Make sure to check the item in the loop
Diffstat (limited to 'src/sound-menu.vala')
-rw-r--r-- | src/sound-menu.vala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sound-menu.vala b/src/sound-menu.vala index 05570b9..3881faf 100644 --- a/src/sound-menu.vala +++ b/src/sound-menu.vala @@ -127,7 +127,7 @@ public class SoundMenu: Object int n = menu.get_n_items (); for (int i = 0; i < n; i++) { string action; - menu.get_item_attribute (0, "action", "s", out action); + menu.get_item_attribute (i, "action", "s", out action); if (in_action == action) return i; } |