diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2012-12-10 11:11:18 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-12-10 11:11:18 -0800 |
commit | 286020a2d16ce3e036b627ccf96fc6dd67dd57a5 (patch) | |
tree | 5487d4538dbd5b0dc65a4bbfcc9ee8c7ce05c755 | |
parent | 0ae16899defc383eaedacf20f5ba03719d1e9322 (diff) | |
download | subsurface-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |