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.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sound-menu.vala b/src/sound-menu.vala
index 8c087bc..e4b8ad1 100644
--- a/src/sound-menu.vala
+++ b/src/sound-menu.vala
@@ -135,8 +135,8 @@ public class SoundMenu: Object
int find_player_section (MediaPlayer player) {
debug("Looking for player: %s", player.id);
string action_name = @"indicator.$(player.id)";
- int n = this.menu.get_n_items () -1;
- for (int i = 1; i < n; i++) {
+ int n = this.menu.get_n_items ();
+ for (int i = 0; i < n; i++) {
var section = this.menu.get_item_link (i, Menu.LINK_SECTION);
if (section == null) continue;