Column list pointer became invalid when element was removed from list. Fixes bug...
authorjake <jake@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 24 Apr 2006 21:27:12 +0000 (21:27 +0000)
committerjake <jake@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 24 Apr 2006 21:27:12 +0000 (21:27 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17983 f5534014-38df-0310-8fa8-9805f1628bb7

gtk/column_prefs.c

index f8367cf081edaf10b964db07f14850f8f0e91c04..54e56327a8a05cca488e04e91a1a4f9f9d200eaf 100644 (file)
@@ -638,6 +638,7 @@ column_arrow_cb(GtkWidget *w, gpointer data _U_) {
                 return;
             }
         }
+        clp1 = g_list_find(prefs.col_list, cfmt);
         gtk_tree_model_get(model, &iter2, 0, &title2, 1, &format2, 2,
                            &clp2, -1);
         gtk_list_store_set(GTK_LIST_STORE(model), &iter2, 0, title1, 1,
@@ -645,7 +646,7 @@ column_arrow_cb(GtkWidget *w, gpointer data _U_) {
         gtk_list_store_set(GTK_LIST_STORE(model), &iter1, 0, title2, 1,
                            format2, 2, clp2, -1);
         gtk_tree_selection_select_iter(sel, &iter2);
-        /* clp1 = g_list_find(prefs.col_list, cfmt); */
+
         column_set_arrow_button_sensitivity(clp1);
 
         /* free strings read from the TreeModel */