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.vala3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/sound-menu.vala b/src/sound-menu.vala
index a9efd74..3881faf 100644
--- a/src/sound-menu.vala
+++ b/src/sound-menu.vala
@@ -118,7 +118,6 @@ public class SoundMenu: Object
while ((location = find_action(this.volume_section, "indicator.high-volume-warning-item")) != -1) {
this.volume_section.remove (location);
}
- this.volume_section.remove (this.volume_section.get_n_items () -1);
this.high_volume_warning_shown = false;
}
}
@@ -128,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;
}