summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2012-12-10 11:11:18 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-12-10 11:11:18 -0800
commit286020a2d16ce3e036b627ccf96fc6dd67dd57a5 (patch)
tree5487d4538dbd5b0dc65a4bbfcc9ee8c7ce05c755
parent0ae16899defc383eaedacf20f5ba03719d1e9322 (diff)
downloadsubsurface-286020a2d16ce3e036b627ccf96fc6dd67dd57a5.tar.gz
Fix incorrect index for dive computer list
I don't understand how this ever worked... Fixes ticket 32 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--gtk-gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk-gui.c b/gtk-gui.c
index a2681de0f..8633369b0 100644
--- a/gtk-gui.c
+++ b/gtk-gui.c
@@ -1677,7 +1677,7 @@ static GtkComboBox *dive_computer_selector(GtkWidget *vbox)
gtk_container_add(GTK_CONTAINER(frame), hbox);
vendor_combo_box = gtk_combo_box_new_with_model(GTK_TREE_MODEL(vendor_model));
- product_combo_box = gtk_combo_box_new_with_model(GTK_TREE_MODEL(product_model[product_default_index]));
+ product_combo_box = gtk_combo_box_new_with_model(GTK_TREE_MODEL(product_model[vendor_default_index]));
g_signal_connect(G_OBJECT(vendor_combo_box), "changed", G_CALLBACK(dive_computer_vendor_changed), product_combo_box);
g_signal_connect(G_OBJECT(product_combo_box), "changed", G_CALLBACK(dive_computer_selector_changed), NULL);