aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/color_dlg.c
diff options
context:
space:
mode:
authorSake Blok <sake@euronet.nl>2007-11-25 12:36:33 +0000
committerSake Blok <sake@euronet.nl>2007-11-25 12:36:33 +0000
commitdb2f6ce546b0233dff7ebf7331e2506a2f5f17fa (patch)
treed372299131746243c612330967557a74f0568b4d /gtk/color_dlg.c
parent6f1ab30f2fc567048b83be10434037df0fb580c3 (diff)
Fixes crashing when opening color filters and pressing OK
(introduced in SVN 23560) svn path=/trunk/; revision=23582
Diffstat (limited to 'gtk/color_dlg.c')
-rw-r--r--gtk/color_dlg.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/gtk/color_dlg.c b/gtk/color_dlg.c
index eb6a42a936..14e9511399 100644
--- a/gtk/color_dlg.c
+++ b/gtk/color_dlg.c
@@ -1303,8 +1303,6 @@ color_ok_cb(GtkButton *button _U_, gpointer user_data _U_)
static void
color_apply_cb(GtkButton *button _U_, gpointer user_data _U_)
{
- GSList *cfl;
-
/* if we don't have a Save button, just save the settings now */
if (!prefs.gui_use_pref_save) {
if (!color_filters_write(color_filter_edit_list))
@@ -1312,10 +1310,10 @@ color_apply_cb(GtkButton *button _U_, gpointer user_data _U_)
"Could not open filter file: %s", strerror(errno));
}
- /* merge the temporary coloring filters with the ones that just
- * have been edited and apply them both */
- cfl = g_slist_concat(color_filter_tmp_list, color_filter_edit_list);
- color_filters_apply(cfl);
+ /* Apply the coloring rules, both the temporary ones in
+ * color_filter_tmp_list as the permanent ones in color_filter_edit_list
+ * */
+ color_filters_apply(color_filter_tmp_list, color_filter_edit_list);
/* colorize list */
cf_colorize_packets(&cfile);