aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
Diffstat (limited to 'gtk')
-rw-r--r--gtk/capture_dlg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/capture_dlg.c b/gtk/capture_dlg.c
index 94a4d4dc53..369e16ca07 100644
--- a/gtk/capture_dlg.c
+++ b/gtk/capture_dlg.c
@@ -737,7 +737,8 @@ capture_prep(void)
filter_te = GTK_COMBO(filter_cm)->entry;
gtk_combo_set_popdown_strings(GTK_COMBO(filter_cm), filter_list);
- gtk_entry_set_text(GTK_ENTRY(filter_te), ""); /* Default capture filter is empty */
+ if (cfile.cfilter)
+ gtk_entry_set_text(GTK_ENTRY(filter_te), cfile.cfilter);
gtk_tooltips_set_tip(tooltips, filter_te,
"Enter a capture filter to reduce the amount of packets to be captured. "
"See \"Capture Filters\" in the online help for further information how to use it.",