aboutsummaryrefslogtreecommitdiff
path: root/src/sound-menu.vala
diff options
context:
space:
mode:
Diffstat (limited to 'src/sound-menu.vala')
-rw-r--r--src/sound-menu.vala2
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;
}