Skip to contentSkip to conversation

hdajackretask: Fix "advanced override" bug

PATCH Applied David Henningsson 2 participants 2 messages Feb 28, 2013 – Mar 1, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hdajackretask: Fix "advanced override" bug

The values were not correctly retreived from the comboboxes.

---
 hdajackretask/main-gtk.c |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
hdajackretask/main-gtk.c +5 -5
index 65d0f3a..4227669 100644
@@ -183,14 +183,14 @@ static void update_user_pin_config(ui_data_t* ui)
             continue;
 
         if (ui->free_overrides) {
-            int i;
+            int j;
             int index;
             unsigned long val = 0;
-            for (i = 0; i < FREE_OVERRIDES_COUNT; i++) {
-                index = gtk_combo_box_get_active(GTK_COMBO_BOX(pin_ui->jacktype));
-                if (index < 0) 
+            for (j = 0; j < FREE_OVERRIDES_COUNT; j++) {
+                index = gtk_combo_box_get_active(GTK_COMBO_BOX(pin_ui->free_override_cb[j]));
+                if (index < 0)
                     break;
-                val += get_free_override_list(i)[index].value;
+                val += get_free_override_list(j)[index].value;
             }
             if (index < 0)
                 continue;
Signature · 1 line
1.7.9.5
Applied
#1 lore raw

At Thu, 28 Feb 2013 22:01:08 +0100,

Quoted 4 lines · David Henningsson

The values were not correctly retreived from the comboboxes.

Thanks, applied.

Takashi

Quoted 31 lines
---
 hdajackretask/main-gtk.c |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
hdajackretask/main-gtk.c +5 -5
index 65d0f3a..4227669 100644
@@ -183,14 +183,14 @@ static void update_user_pin_config(ui_data_t* ui)
             continue;
 
         if (ui->free_overrides) {
-            int i;
+            int j;
             int index;
             unsigned long val = 0;
-            for (i = 0; i < FREE_OVERRIDES_COUNT; i++) {
-                index = gtk_combo_box_get_active(GTK_COMBO_BOX(pin_ui->jacktype));
-                if (index < 0) 
+            for (j = 0; j < FREE_OVERRIDES_COUNT; j++) {
+                index = gtk_combo_box_get_active(GTK_COMBO_BOX(pin_ui->free_override_cb[j]));
+                if (index < 0)
                     break;
-                val += get_free_override_list(i)[index].value;
+                val += get_free_override_list(j)[index].value;
             }
             if (index < 0)
                 continue;
Signature · 1 line
1.7.9.5